Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 45

Thread: SQL 101

  1. #21

    Default Re: SQL 101


    unsay d sql?

  2. #22

    Default Re: SQL 101

    Quote Originally Posted by red_colt
    naa ba association sa d sql? kanang ang usa ka column sa usa ka table associated sa usa ka column sa laing table. naa? nya nsaon na cya?
    Use JOIN in your SQL statement.

    Example:
    Table1
    Fields: sample_field1,samplefield2..

    Table2
    Fields: sample_field1,fieldX,fieldY

    declare sample_field1 of table1 as primarykey
    sample_field1 of table2 is Foreign key

    Sample Query:
    Select * from table1 inner join table2 on table1.samplefield1 = table2.samplefiled2

    more about JOIN: http://www.w3schools.com/sql/sql_join.asp

  3. #23

    Default Re: SQL 101

    sheeshhhhh................................



    set serveroutput on
    set verify off
    DECLARE
    CURSOR emp_cursor is
    SELECT *
    FROM emp;
    emp_record emp_cursor%ROWTYPE;
    BEGIN
    OPEN emp_cursor;
    LOOP
    FETCH emp_cursor INTO emp_record;
    DBMS_OUTPUT.PUT_LINE(emp_record.empno||' '||emp_record.ename||' '||emp_record.hiredate||' '||emp_record.sal);
    EXIT WHEN emp_cursor%ROWCOUNT >=14;
    END LOOP;
    CLOSE emp_cursor;
    END;
    /
    --------------------------------------------------
    set serveroutput on
    set verify off
    accept p_ask prompt 'Tag-ana kinsa ko: '
    DECLARE
    v_ask varchar2(10) := '&p_ask';
    v_name varchar2(10):= 'DODIE';
    BEGIN
    if v_ask = v_name THEN
    DBMS_OUTPUT.PUT_LINE(' CORRECT !!!!!!') ;
    else
    DBMS_OUTPUT.PUT_LINE(' SAYOP KA!!!!');
    END IF;
    END;
    /

  4. #24

    Default Re: SQL 101

    guys, maka download bata aning mssql?

  5. #25

    Default Re: SQL 101

    favorite SQL statement:

    > select * from IT_bosses where IQ>50;

    Empty set (0.00 sec)


    Jok-jok lang ha... bato bato sa langit...

  6. #26

    Default Re: SQL 101

    dili ka kadownload og mssql but ang msde (desktop edition) pwede. i think ang msde wala lang enterprise manager og query analyzer

  7. #27

    Default Re: SQL 101

    Quote Originally Posted by mason
    guys, maka download bata aning mssql?
    You can, however, download PostgreSQL at http://www.postgresql.org/, and MySQL at http://www.mysql.com.

    [ simon.cpu ]

  8. #28

    Default Re: SQL 101

    Quote Originally Posted by mason
    guys, maka download bata aning mssql?
    yep i guess you can.MS SQL Server 2005 Express Edition is downloadable.



  9. #29

    Default Re: SQL 101

    Quote Originally Posted by dodie
    sheeshhhhh................................



    set serveroutput on
    set verify off
    DECLARE
    CURSOR emp_cursor is
    SELECT *
    FROM emp;
    emp_record emp_cursor%ROWTYPE;
    BEGIN
    OPEN emp_cursor;
    LOOP
    FETCH emp_cursor INTO emp_record;
    DBMS_OUTPUT.PUT_LINE(emp_record.empno||' '||emp_record.ename||' '||emp_record.hiredate||' '||emp_record.sal);
    EXIT WHEN emp_cursor%ROWCOUNT >=14;
    END LOOP;
    CLOSE emp_cursor;
    END;
    /
    --------------------------------------------------
    set serveroutput on
    set verify off
    accept p_ask prompt 'Tag-ana kinsa ko: '
    DECLARE
    v_ask varchar2(10) := '&p_ask';
    v_name varchar2(10):= 'DODIE';
    BEGIN
    if v_ask = v_name THEN
    DBMS_OUTPUT.PUT_LINE(' CORRECT !!!!!!') ;
    else
    DBMS_OUTPUT.PUT_LINE(' SAYOP KA!!!!');
    END IF;
    END;
    /

    dude kabaw ka migrate data from AS400 to MSSQL SERVER 2000? or anyone here?? tnx

  10. #30

    Default Re: SQL 101

    Why not just copy your data to a text file with delimiters then copy it to your other database. This was how we did it with a legacy system and moving it to a sybase server using bcp command.

  11.    Advertisement

Page 3 of 5 FirstFirst 12345 LastLast

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