Oracle journey (ii) SQL statement query settings

Source: Internet
Author: User

Oracle journey (ii) SQL statement query settings such as t_chmo_order_opera p, business table t_chmo_teruser u, user table t_chmo_province, Province table t_chmo_opera_price r price list ----- value-added business details select p. oo_source_num as phone number, r. opera_price as amount, cp_province_name as region, p. oo_create_time as date, u. ct_category as operating system, r. new_name as handles business from t_chmo_order_opera p, t_chmo_teruser u, t_chmo_province, t_chmo_opera_price r -- queries where p in conjunction with four tables. oo_create_time> = to_date ('1970-01-27 00:00:00 ', 'yyyy-mm-dd hh24: mi: ss') -- use the time and p of the business table. oo_create_time <= to_date ('2017-02-02 23:59:59 ', 'yyyy-mm-dd hh24: mi: ss ') and oo_status = '1' --- oo_status in the business table is equal to 1, indicating that the business is successful and po_name is not null -- the business name is not equal to null and po_name = opera_name --- the business name in the business table matches the business in the price list name, then we can get the price in the price list and oo_source_num = ct_phone --- associate the phone number in the business table with the phone number in the User table and oo_province_code = cp_province_code -- the province code in the business table is equal to the province table code, then, the query results of the Chinese name of the province are as follows:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.