|
I have created A table in sql server having following field I want to display all the record of this table where created date will be system date and created time will before the current system time but on the current sytem date Plz help me In generating this query
(comments are locked)
|
might be what you want but as Kev says, it may well revolve around your data types. I would also add its not a good practice to use column names with spaces, if you want to make them more readable then use an underscore, such as " Oh no! You did it!! You have started the naming-conventions-discussion!!! The advice should of course be: "If you want to make them more readable, then use PascalCase" Sorry. Couldn't resist. Please ignore this comment... :)
Nov 13 '10 at 03:22 PM
Magnus Ahlkvist
Impossible to ignore - I love it! A blatant "case" of camelCase envy :)
Nov 13 '10 at 07:16 PM
KenJ
...and name any foreign key columns exactly the same as the primary key columns they reference so BI tools like QlikView and PowerPivot can infer the relationships automatically. Nothing funny here, just saying...
Nov 13 '10 at 09:12 PM
Scot Hauder
(comments are locked)
|


The answer could depend on the data types you have chosen, please state what data types you are using for your fields.
the datatype of created date and created time is nvarchar
in that case what is the format of these strings that hold date and time?