Reputation: 65
I'm wanting to export certain rows based on a user id & the time the row was created to a CSV. For example, I'd like to grab and export to the CSV a clock_in_time and clock_out_time if the user_id == "Bob" and the creation_time was less than two weeks ago. I'm hoping for a built-in way in Datagrip but am open to other options. Thanks for any help!
Upvotes: 0
Views: 825
Reputation: 10335
SELECTclock_in_time, clock_out_time
FROM table
WHERE user_id = "Bob"
Upvotes: 1