Hello,
While I have many years experience using SQL into a variety of backend databases, I am new to the SQL Server environment and its syntax. Your assistance would be greatly appreciated.
I want to create a SQL query which will use, as one of its selection parameters, a comparison of an Integer to its Float value.
I have an Integer value within the table DialID
I now want to SELECT only every 3rd record instead of all records - where the Integer portion of the Divide by 3 is equal to the Divide by 3 value itself.
To do so I want something like
DialID INT(DialID/3) (DialID/3)
1 0 0.33
2 0 0.66
3 1 1.0 <--- Selected
4 1 1.33
5 1 1.66
6 2 2.0 <--- Selected
7 2 2.33
etc.
I need some assistance with what syntax to use to get my desired results.
Any assistance you can offer would be greatly appreciated.
Thanks,
JRB-Bldr
While I have many years experience using SQL into a variety of backend databases, I am new to the SQL Server environment and its syntax. Your assistance would be greatly appreciated.
I want to create a SQL query which will use, as one of its selection parameters, a comparison of an Integer to its Float value.
I have an Integer value within the table DialID
I now want to SELECT only every 3rd record instead of all records - where the Integer portion of the Divide by 3 is equal to the Divide by 3 value itself.
To do so I want something like
DialID INT(DialID/3) (DialID/3)
1 0 0.33
2 0 0.66
3 1 1.0 <--- Selected
4 1 1.33
5 1 1.66
6 2 2.0 <--- Selected
7 2 2.33
etc.
I need some assistance with what syntax to use to get my desired results.
Any assistance you can offer would be greatly appreciated.
Thanks,
JRB-Bldr