Naveen Mettapally
Naveen M. Reddy is welcoming U.
Welcome to My Small World.
Monday, December 13, 2010
Partition by and Over by query to separate the single row into different columns based on the partition and over by
select st.*, rank() over(partition by st.id order by st.entr_dt, st.req_st_code) rank1from req_st st.
This is to separate a single row into different columns. This is pretty usefull.
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)