MYSQL Query example

Embed Size (px)

DESCRIPTION

Some queries to understand MYSQL

Citation preview

select * from booking_xml limit 0, 5 where bx_xml like '%12239253%' and created_on super_pnr ='12239253' limit 0,5select * from booking_xml where created_on between '2014-02-13 11:00:00' and '2014-02-13 11:20:00' and bx_xml like '%[email protected]%'limit 0,111.03am'1302148320''557a5f16-0a05-4088-96f5-fab39bf6f197'-----------------------------------------select * from pricing_xml limit 0,5 where pricing_id = '86927d52-bb2c-4173-a3a0-d5ce0fa3222b'select * from pricing_xml where created_on between '2014-02-13 11:03:00' and '2014-02-14 11:20:00' and px_xml like '%DEL%'limit 0,5select * from payment_detail where super_pnr = '1302148320''3185140''0684bb4f-17f6-4977-8a83-bfd2460c32d5'select * from ticketing_xml limit 0,5select * from super_pnr_xml where super_pnr = '1302148320'limit 0,5select * from pricing_xml where created_on < '2014-02-17 11:03:00' limit 0,10select * from pricing_data where data_key like '%86927d52-bb2c-4173-a3a0-d5ce0fa3222b%' select * from flight_pricing where pricing_id = '86927d52-bb2c-4173-a3a0-d5ce0fa3222b' limit 0,5created_on between '2014-02-13 11:03:00' and '2014-02-14 11:20:00' limit 0,1'DEDDEL9W8159W20140406DELPNQ9W7959W20140406'select * from search_xml limit 0,1 where search_id = 'a1c384b4-4d59-4ec4-88ea-0a703ec8007d'select * from air_search_criteria_arc where created_on between '2014-02-13 11:03:00' and '2014-02-14 11:20:00' and px_xml like '%DEL%'where search_id = 'a1c384b4-4d59-4ec4-88ea-0a703ec8007d' limit 0,1-----------------