Page 5 of 5 FirstFirst ... 2345
Results 41 to 45 of 45

Thread: SQL 101

  1. #41

    Default Re: SQL 101


    ang MS SQL 2000 server installer mo run ba sa windows 2003 standard edition server OS?

  2. #42

    Default Re: SQL 101

    SELECT topics.ID_TOPIC as id, subject as name, body FROM smf_messages as messages, smf_topics as topics WHERE topics.ID_FIRST_MSG = messages.ID_MSG AND topics.ID_BOARD = ORDER BY name

  3. #43

    Default Re: SQL 101

    CREATE OR REPLACE FORCE VIEW MEDICINE_STOCKS_LEDGER
    (ORDERING, MEDICINE_CODE, TRAN_DATE, TRAN_BY, TRAN_TYPE,
    TRAN_DESC, TRAN_NO, ADD_QUANTITY, DEDUCT_QUANTITY, BALANCE_QUANTITY)
    AS
    SELECT dense_rank() over (PARTITION BY medicine_code ORDER BY tran_date, tran_type, tran_no) ordering,
    medicine_code,
    tran_date,
    tran_by,
    tran_type,
    DECODE(tran_type, '1_RC', 'RECEIVE', '2_DS', 'DISPENSE', '3_AD', 'ADJUST') tran_desc,
    tran_no,
    add_quantity,
    deduct_quantity,
    SUM(NVL(add_quantity, 0) - NVL(deduct_quantity, 0)) over (PARTITION BY medicine_code ORDER BY tran_date, tran_type, tran_no) balance_quantity
    FROM (
    SELECT rcmd_medi_code medicine_code,
    mdrr_received_on tran_date,
    mdrr_received_by tran_by,
    '1_RC' tran_type,
    rcmd_mdrr_tran_no tran_no,
    rcmd_quantity add_quantity,
    NULL deduct_quantity
    FROM received_medicines,
    medicine_rr
    WHERE mdrr_tran_no = rcmd_mdrr_tran_no
    UNION ALL
    SELECT dsmd_medi_code medicine_code,
    cnlg_date tran_date,
    cnlg_nurse tran_by,
    '2_DS' tran_type,
    cnlg_tran_no tran_no,
    NULL add_quantity,
    dsmd_quantity deduct_quantity
    FROM dispensed_medicines,
    consultation_logs
    WHERE cnlg_tran_no = dsmd_cnlg_tran_no
    UNION ALL
    SELECT admd_medi_code medicine_code,
    msad_adjusted_on tran_date,
    msad_adjusted_by tran_by,
    '3_AD' tran_type,
    msad_tran_no tran_no,
    admd_add_quantity add_quantity,
    admd_deduct_quantity deduct_quantity
    FROM adjusted_medicines,
    medicine_stock_adjustments
    WHERE msad_tran_no = admd_msad_tran_no
    );

  4. #44
    Because we are poor, shall we be vicious? vern's Avatar
    Join Date
    Feb 2003
    Gender
    Male
    Posts
    5,790

    Default Re: SQL 101

    I'm unsticking this. It doesn't seem important enough to clutter up the stickied posts. PM me with objections and insults if you disagree.

  5. #45

    Default Re: SQL 101

    hi tanan

    dugay2x o taud2x na gyud unta ko gusto mukat-on ug mulambo pero hangtud karon gamay ra ug daginuton pa kaayo akong nakat-unan mahitungod aning SQL


    mao ni ang mga links nga akong natampo kaniadtu pa dinhi sa istorya:

    matching two table(s) with the same fields but different contents by sql
    https://www.istorya.net/forums/progra...tents-sql.html


    learning (my)sql 101
    https://www.istorya.net/forums/progra...sql-101-a.html


    adding new column in TABLE using sql
    https://www.istorya.net/forums/progra...using-sql.html


    nag-post lang ko daan ani nga thread kay in the coming days kani na sab akong pagakat-onan sa akong mga kaalam (at least ma-review ninyo pud tanan unsa akong background when it comes to programming .. char. heheh)


    just an over view unsa akong mga future inquiries, gi-unsa ninyo pagsugod o pagkahimong-imba aning SQL?



    matsalams

  6.    Advertisement

Page 5 of 5 FirstFirst ... 2345

Similar Threads

 
  1. Guitar 101
    By Carlo Borromeo in forum Music & Radio
    Replies: 74
    Last Post: 11-25-2014, 09:09 PM
  2. .:: Overclocking 101 ::.
    By FK in forum Computer Hardware
    Replies: 1043
    Last Post: 05-27-2008, 07:31 AM
  3. learning (my)sql 101 - B
    By anggwaponi in forum Programming
    Replies: 9
    Last Post: 03-14-2008, 05:56 AM
  4. learning (my)sql 101
    By anggwaponi in forum Programming
    Replies: 16
    Last Post: 02-29-2008, 01:12 PM
  5. SCAM 101 : never give out blank checks
    By SPRINGFIELD_XD_40 in forum Politics & Current Events
    Replies: 14
    Last Post: 06-06-2006, 12:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top