Find Jobs
Hire Freelancers

2 simple SQL queries

$30-5000 USD

Completed
Posted over 14 years ago

$30-5000 USD

Paid on delivery
I'm not an SQL guy, so it would probably take me an hour or so to figure this out. I'm sure this is simple if you work with SQL. Here's what I need: Every day, our DB gets updated with daily info about items. So today, for example, the last entries might look like this: tablename: 2009_october_data date item info ---------- ---- ---- 2009-10-07 xxx foo 2009-10-07 xxy bar 2009-10-07 xxz dee This db gets appended to daily, so yesterday for example, the last entries might have look something like this: tablename: 2009_october_data date item info ---------- ---- ---- 2009-10-06 xxt goo 2009-10-06 xxx gee 2009-10-06 xxz haw Notice that yesterday (2009-10-06), the item "xxy" was NOT yet in the db. Also, notice that while item "xxt" was in the db yesterday (2009-10-06), it is not in the db today (2009-10-07). What I need is 2 SQL queries: 1. one that retrieves the list of "new" items that appeared today, but were not in the db yesterday. 2. one that retrieves the list of "deleted" items that appeared yesterday, but are not in the db today. Thanks in advance!
Project ID: 2910417

About the project

9 proposals
Remote project
Active 15 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$1 USD in 2 days
4.7 (66 reviews)
4.9
4.9
9 freelancers are bidding on average $10 USD for this job
User Avatar
See private message.
$11.05 USD in 2 days
4.8 (171 reviews)
7.2
7.2
User Avatar
See private message.
$11.90 USD in 2 days
5.0 (405 reviews)
6.4
6.4
User Avatar
See private message.
$17 USD in 2 days
5.0 (68 reviews)
5.5
5.5
User Avatar
See private message.
$4.25 USD in 2 days
5.0 (87 reviews)
4.5
4.5
User Avatar
See private message.
$11.05 USD in 2 days
4.9 (21 reviews)
3.9
3.9
User Avatar
See private message.
$12.75 USD in 2 days
5.0 (21 reviews)
3.4
3.4
User Avatar
See private message.
$17 USD in 2 days
5.0 (2 reviews)
1.4
1.4
User Avatar
See private message.
$5.10 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
4.6
90
Member since Apr 29, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.