What is this Site!!

All about Real time requirements in Orale Stay Tune!!

Monday, November 26, 2007



Query about Data Storage and Retrieval

Is there any database parameter that we can set, which controls the way data is stored and retrieved for display purpose.

Or to put it other way round,

When we retrieve the data using select * statement, is the data displayed always in the chronological order ?

Context here is:

We have a table that contains past 2 months data (say 200 rows - 100 rows loaded on 1st June as May data, 100 for June data loaded on 1st July). Using some DB feature/parameter can we seprate out the recently inserted rows i.e. June data ?

PS: there is no date-time stamp related column in the row.

Just a blind shot:

If I do select * from table, and copy the last 100 of the displayed records, will it always serve my objective?

When you want to querry data from a table you have to know the structure of the table(i.e the columns in the table) these are what you need to restrict your select.

For example if you have a table called urtable has column like

name
address
salary
date_loaded

You can query for data loaded in june this way:

select name,address,salary,date_loaded from urtable
where date_loaded like '%06-01-2005%'

You can play around with several this query to achieve your desired result.

1 comments:

Anonymous said...

Such a nice blog, I really like what you write in this blog, I also have some relevant Information about Best HR Training In Hyderabad | Hr training institute in Hyderabad! if you want more information.
Oracle Fusion HCM Online Training
Oracle Fusion Financials Online Training