Skip to content

spool to .csv file using for loop

need to spool output into .csv file using loop, fyi…I have data in 4 diff partition. but no sure how to proceed. code be like. result:- not sure if I am spooling properly, also please check the index variable of for loop in used correctly in my select statement. Answer You don’t need 4 different q…

Best practice to keep track of timestamps? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year. Improve this question If have been trying to keep track of multiple timestamps regarding user-related inputs and my …

SQL Distinct on One Column with NO ID

I have a problem where I need to select three columns from a table in Access to populate another table but it needs to be distinct on one column ONLY. I tried the GROUP BY as follows But when I use above with a SELECT INTO and check for duplicates there are some. I have looking at this post –

Get row Sums across multiple users/tables

I am working in SQL Server, and I have three tables that I have simplified below USERS: POINTS: CLAIMS: I’m trying to run a report of distinct users with a sum of points earned and a sum of points used. I’ve started with the join of tables by userId… but of course that returns the user multi…

Oracle SQL get last Sunday [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year. Improve this question I am currently using the below statement to sucessfully get it Is there…