Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hi,I am new to SQL and I need help with following query.I need to retrieve newly added columns from a table. Records will be added to this table on a daily basis and I need to retrieve the records added the previous day.Can anyone help me with it. Thanks
tkizer
Almighty SQL Goddess
38200 Posts
Posted - 2006-05-30 : 15:04:09
Do you have a datetime column that records when the row was inserted?Tara Kizeraka tduggan
rememberme
Starting Member
2 Posts
Posted - 2006-05-30 : 15:31:08
There is no datetime column in the data table.
tkizer
Almighty SQL Goddess
38200 Posts
Posted - 2006-05-30 : 15:37:24
Then there is no way to retrieve this information unless you add such a column or use a trigger to capture the rows into another table.Tara Kizeraka tduggan
khtan
In (Som, Ni, Yak)
17689 Posts
Posted - 2006-05-30 : 21:13:52
create a datetime column and set the default to getdate()