select * from user_history_channel_view where ROWNUM <7 order by channel_durati
on
SELECT USER_ID FROM SB_USER WHERE USER_ACTIVE =1 AND ROWNUM=1
Parametrize user_id select * from sb_user where user_active=0 and user_id =:userId Update: update sb_user set user_active = 1 where user_id =:userId insert into SB_DEVICE VALUES ('2600','brbklcjwqrm1','brbklcjwqrm1','8','00-26-B9 -DF-D9-53','1','1','1',' S -DXW1L5A70282124576374','DELL','E6510','15-MAR-11' ,'DEV','15-MAR-11',null,'0');
Delete from SB_Share where USER_ID= :user_Id and FRIEND_USER_ID= :friend_Id
DELETE FROM SB_PLAYLIST_CONTENT WHERE SB_PLAYLIST_CONTENT.PLAYLIST_ID IN (select PLAYLIST_ID FROM SB_PLAYLIST WHERE USER_ID=:user_Id) DELETE FROM SB_PLAYLIST where USER_ID= :user_Id select * from sb_household where household_id ='5864' Delete From SB_SHARE where USER_ID=:userId and FRIEND_USER_ID=:friendId update SB_HOUSEHOLD_DEVICE set HOUSEHOLD_ID ='5755' where device_id ='7' select * from sb_user_setting where user_id in (select user_id from sb_user where household_id =5544 and user_id not in ('6762' ,'6763'))
delete from sb_user_setting where user_id in
(select user_id from sb_user where household_id =5544 and user_id not in ('6762' ,'6763'))
delete from sb_list_element where list_id in
(select list_id from sb_list where user_id in (select user_id from sb_user where household_id =5544 and user_id not in ('6762' ,'6763')) delete from sb_list where user_id in (select user_id from sb_user where household_id =5544 and user_id not in ('6762' ,'6763')) delete from sb_social_identity where user_id in (select user_id from sb_user where household_id in (select household_Id from sb_household where household_name = :householdName)) delete from sb_user where household_id =:householdId update SB_HOUSEHOLD_DEVICE set HOUSEHOLD_ID ='5673' where device_id ='92' select * from SB_HOUSEHOLD_DEVICE where device_id =2600 select * from SB_HOUSEHOLD_DEVICE where device_id =2300 insert into SB_HOUSEHOLD_DEVICE VALUES ('5864','5864','2600','test','15-MAR-11', 1,'15-MAR-11',null,0,null,null) insert into SB_HOUSEHOLD_DEVICE VALUES ('5865','5864','2300','test','15-MAR-11', 1,'15-MAR-11',null,0,null,null) insert into SB_HOUSEHOLD_DEVICE VALUES ('5555','5555','22','test','15-MAR-11',1, '15-MAR-11',null,0,null,null)
select * from sb_household where household_id ='6181'
Select * from sb_household_device where household_id ='5744'
Select * from sb_household_device where household_id ='5543'
Select * from sb_household_device where household_id =5744 update SB_HOUSEHOLD_DEVICE set HOUSEHOLD_ID ='5744' where device_id in ('93','35','21341','21342','21343','21344','21345','21346','2 1347','21348','21349','21350','4','100','101')
Select * from sb_household_device where device_id = 2
Select * from sb_household_device where device_id = 3 Select * from sb_household_device where device_id = 92 Select * from sb_device where Serial_number =' W -DXW0MCAM935782473306785' Select * from sb_device where Serial_number =' V52GSCB53534918071' Select * from sb_device where Serial_number =' W DXW1N5A0095112607442343' Select * from sb_device where Serial_number ='2026368033' update SB_HOUSEHOLD_DEVICE set HOUSEHOLD_ID ='5673' where device_id ='92' select * from sb_household_device where device_id =92 select * from SB_household where household_id =5573 select * from SB_Household_device where household_id =5573 select * from SB_Household_device where household_id =5807 insert into SB_HOUSEHOLD_DEVICE VALUES ('5573','5573','92','test','21-APR-11',1, '21-APR-11',null,0,null,null) Select * from sb_household_device where device_id = 2 Select * from sb_household_device where device_id = 3 Select * from sb_household_device where device_id = 92 Select * from sb_device where Serial_number =' W -DXW0MCAM935782473306785' Select * from sb_device where Serial_number =' V52GSCB53534918071' Select * from sb_device where Serial_number =' W DXW1N5A0095112607442343' Select * from sb_device where Serial_number ='2026368033' update SB_DEVICE set serial_number=' W -DXW1N5A0095911260744243' where device_id ='92' select * from sb_household_device where device_id =92 select * from SB_household where household_id =5573 select * from SB_Household_device where household_id =5573 select * from SB_Household_device where household_id =5807 insert into SB_HOUSEHOLD_DEVICE VALUES ('5573','5573','92','test','21-APR-11',1, '21-APR-11',null,0,null,null)