Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- #청주주님의교회
- 에디터
- 인텐트
- CSS
- 주님의교회
- 안드로이드
- 제이쿼리
- Activity
- java 8
- 아이콘
- 프로그래밍
- androidstudio
- 영성
- 글쓰기
- 자바
- JavaScript
- Android
- Java
- jQuery
- Selector
- 회원가입
- 생명주기
- TinyMCE
- 게시판
- 안드로이드 AVD
- 청주
- 웹개발
- Spring
- Resources
- Intent
Archives
- Today
- Total
공부하는 블로그
SQL 실습 9월 18일 본문
H
HR테이블을 사용해서 작성
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 | -- Single Line /* Multi Line */ -- 1. EMPLOYEES 테이블의 모든 사원들의 정보를 조회하세요. SELECT * FROM EMPLOYEES ; /* 100 Steven King SKING 515.123.4567 03/06/17 AD_PRES 24000 90 101 Neena Kochhar NKOCHHAR 515.123.4568 05/09/21 AD_VP 17000 100 90 102 Lex De Haan LDEHAAN 515.123.4569 01/01/13 AD_VP 17000 100 90 103 Alexander Hunold AHUNOLD 590.423.4567 06/01/03 IT_PROG 9000 102 60 104 Bruce Ernst BERNST 590.423.4568 07/05/21 IT_PROG 6000 103 60 105 David Austin DAUSTIN 590.423.4569 05/06/25 IT_PROG 4800 103 60 106 Valli Pataballa VPATABAL 590.423.4560 06/02/05 IT_PROG 4800 103 60 107 Diana Lorentz DLORENTZ 590.423.5567 07/02/07 IT_PROG 4200 103 60 108 Nancy Greenberg NGREENBE 515.124.4569 02/08/17 FI_MGR 12008 101 100 109 Daniel Faviet DFAVIET 515.124.4169 02/08/16 FI_ACCOUNT 9000 108 100 110 John Chen JCHEN 515.124.4269 05/09/28 FI_ACCOUNT 8200 108 100 111 Ismael Sciarra ISCIARRA 515.124.4369 05/09/30 FI_ACCOUNT 7700 108 100 112 Jose Manuel Urman JMURMAN 515.124.4469 06/03/07 FI_ACCOUNT 7800 108 100 113 Luis Popp LPOPP 515.124.4567 07/12/07 FI_ACCOUNT 6900 108 100 114 Den Raphaely DRAPHEAL 515.127.4561 02/12/07 PU_MAN 11000 100 30 115 Alexander Khoo AKHOO 515.127.4562 03/05/18 PU_CLERK 3100 114 30 116 Shelli Baida SBAIDA 515.127.4563 05/12/24 PU_CLERK 2900 114 30 117 Sigal Tobias STOBIAS 515.127.4564 05/07/24 PU_CLERK 2800 114 30 118 Guy Himuro GHIMURO 515.127.4565 06/11/15 PU_CLERK 2600 114 30 119 Karen Colmenares KCOLMENA 515.127.4566 07/08/10 PU_CLERK 2500 114 30 120 Matthew Weiss MWEISS 650.123.1234 04/07/18 ST_MAN 8000 100 50 121 Adam Fripp AFRIPP 650.123.2234 05/04/10 ST_MAN 8200 100 50 122 Payam Kaufling PKAUFLIN 650.123.3234 03/05/01 ST_MAN 7900 100 50 123 Shanta Vollman SVOLLMAN 650.123.4234 05/10/10 ST_MAN 6500 100 50 124 Kevin Mourgos KMOURGOS 650.123.5234 07/11/16 ST_MAN 5800 100 50 125 Julia Nayer JNAYER 650.124.1214 05/07/16 ST_CLERK 3200 120 50 126 Irene Mikkilineni IMIKKILI 650.124.1224 06/09/28 ST_CLERK 2700 120 50 127 James Landry JLANDRY 650.124.1334 07/01/14 ST_CLERK 2400 120 50 128 Steven Markle SMARKLE 650.124.1434 08/03/08 ST_CLERK 2200 120 50 129 Laura Bissot LBISSOT 650.124.5234 05/08/20 ST_CLERK 3300 121 50 130 Mozhe Atkinson MATKINSO 650.124.6234 05/10/30 ST_CLERK 2800 121 50 131 James Marlow JAMRLOW 650.124.7234 05/02/16 ST_CLERK 2500 121 50 132 TJ Olson TJOLSON 650.124.8234 07/04/10 ST_CLERK 2100 121 50 133 Jason Mallin JMALLIN 650.127.1934 04/06/14 ST_CLERK 3300 122 50 134 Michael Rogers MROGERS 650.127.1834 06/08/26 ST_CLERK 2900 122 50 135 Ki Gee KGEE 650.127.1734 07/12/12 ST_CLERK 2400 122 50 136 Hazel Philtanker HPHILTAN 650.127.1634 08/02/06 ST_CLERK 2200 122 50 137 Renske Ladwig RLADWIG 650.121.1234 03/07/14 ST_CLERK 3600 123 50 138 Stephen Stiles SSTILES 650.121.2034 05/10/26 ST_CLERK 3200 123 50 139 John Seo JSEO 650.121.2019 06/02/12 ST_CLERK 2700 123 50 140 Joshua Patel JPATEL 650.121.1834 06/04/06 ST_CLERK 2500 123 50 141 Trenna Rajs TRAJS 650.121.8009 03/10/17 ST_CLERK 3500 124 50 142 Curtis Davies CDAVIES 650.121.2994 05/01/29 ST_CLERK 3100 124 50 143 Randall Matos RMATOS 650.121.2874 06/03/15 ST_CLERK 2600 124 50 144 Peter Vargas PVARGAS 650.121.2004 06/07/09 ST_CLERK 2500 124 50 145 John Russell JRUSSEL 011.44.1344.429268 04/10/01 SA_MAN 14000 0.4 100 80 146 Karen Partners KPARTNER 011.44.1344.467268 05/01/05 SA_MAN 13500 0.3 100 80 147 Alberto Errazuriz AERRAZUR 011.44.1344.429278 05/03/10 SA_MAN 12000 0.3 100 80 148 Gerald Cambrault GCAMBRAU 011.44.1344.619268 07/10/15 SA_MAN 11000 0.3 100 80 149 Eleni Zlotkey EZLOTKEY 011.44.1344.429018 08/01/29 SA_MAN 10500 0.2 100 80 150 Peter Tucker PTUCKER 011.44.1344.129268 05/01/30 SA_REP 10000 0.3 145 80 151 David Bernstein DBERNSTE 011.44.1344.345268 05/03/24 SA_REP 9500 0.25 145 80 152 Peter Hall PHALL 011.44.1344.478968 05/08/20 SA_REP 9000 0.25 145 80 153 Christopher Olsen COLSEN 011.44.1344.498718 06/03/30 SA_REP 8000 0.2 145 80 154 Nanette Cambrault NCAMBRAU 011.44.1344.987668 06/12/09 SA_REP 7500 0.2 145 80 155 Oliver Tuvault OTUVAULT 011.44.1344.486508 07/11/23 SA_REP 7000 0.15 145 80 156 Janette King JKING 011.44.1345.429268 04/01/30 SA_REP 10000 0.35 146 80 157 Patrick Sully PSULLY 011.44.1345.929268 04/03/04 SA_REP 9500 0.35 146 80 158 Allan McEwen AMCEWEN 011.44.1345.829268 04/08/01 SA_REP 9000 0.35 146 80 159 Lindsey Smith LSMITH 011.44.1345.729268 05/03/10 SA_REP 8000 0.3 146 80 160 Louise Doran LDORAN 011.44.1345.629268 05/12/15 SA_REP 7500 0.3 146 80 161 Sarath Sewall SSEWALL 011.44.1345.529268 06/11/03 SA_REP 7000 0.25 146 80 162 Clara Vishney CVISHNEY 011.44.1346.129268 05/11/11 SA_REP 10500 0.25 147 80 163 Danielle Greene DGREENE 011.44.1346.229268 07/03/19 SA_REP 9500 0.15 147 80 164 Mattea Marvins MMARVINS 011.44.1346.329268 08/01/24 SA_REP 7200 0.1 147 80 165 David Lee DLEE 011.44.1346.529268 08/02/23 SA_REP 6800 0.1 147 80 166 Sundar Ande SANDE 011.44.1346.629268 08/03/24 SA_REP 6400 0.1 147 80 167 Amit Banda ABANDA 011.44.1346.729268 08/04/21 SA_REP 6200 0.1 147 80 168 Lisa Ozer LOZER 011.44.1343.929268 05/03/11 SA_REP 11500 0.25 148 80 169 Harrison Bloom HBLOOM 011.44.1343.829268 06/03/23 SA_REP 10000 0.2 148 80 170 Tayler Fox TFOX 011.44.1343.729268 06/01/24 SA_REP 9600 0.2 148 80 171 William Smith WSMITH 011.44.1343.629268 07/02/23 SA_REP 7400 0.15 148 80 172 Elizabeth Bates EBATES 011.44.1343.529268 07/03/24 SA_REP 7300 0.15 148 80 173 Sundita Kumar SKUMAR 011.44.1343.329268 08/04/21 SA_REP 6100 0.1 148 80 174 Ellen Abel EABEL 011.44.1644.429267 04/05/11 SA_REP 11000 0.3 149 80 175 Alyssa Hutton AHUTTON 011.44.1644.429266 05/03/19 SA_REP 8800 0.25 149 80 176 Jonathon Taylor JTAYLOR 011.44.1644.429265 06/03/24 SA_REP 8600 0.2 149 80 177 Jack Livingston JLIVINGS 011.44.1644.429264 06/04/23 SA_REP 8400 0.2 149 80 178 Kimberely Grant KGRANT 011.44.1644.429263 07/05/24 SA_REP 7000 0.15 149 179 Charles Johnson CJOHNSON 011.44.1644.429262 08/01/04 SA_REP 6200 0.1 149 80 180 Winston Taylor WTAYLOR 650.507.9876 06/01/24 SH_CLERK 3200 120 50 181 Jean Fleaur JFLEAUR 650.507.9877 06/02/23 SH_CLERK 3100 120 50 182 Martha Sullivan MSULLIVA 650.507.9878 07/06/21 SH_CLERK 2500 120 50 183 Girard Geoni GGEONI 650.507.9879 08/02/03 SH_CLERK 2800 120 50 184 Nandita Sarchand NSARCHAN 650.509.1876 04/01/27 SH_CLERK 4200 121 50 185 Alexis Bull ABULL 650.509.2876 05/02/20 SH_CLERK 4100 121 50 186 Julia Dellinger JDELLING 650.509.3876 06/06/24 SH_CLERK 3400 121 50 187 Anthony Cabrio ACABRIO 650.509.4876 07/02/07 SH_CLERK 3000 121 50 188 Kelly Chung KCHUNG 650.505.1876 05/06/14 SH_CLERK 3800 122 50 189 Jennifer Dilly JDILLY 650.505.2876 05/08/13 SH_CLERK 3600 122 50 190 Timothy Gates TGATES 650.505.3876 06/07/11 SH_CLERK 2900 122 50 191 Randall Perkins RPERKINS 650.505.4876 07/12/19 SH_CLERK 2500 122 50 192 Sarah Bell SBELL 650.501.1876 04/02/04 SH_CLERK 4000 123 50 193 Britney Everett BEVERETT 650.501.2876 05/03/03 SH_CLERK 3900 123 50 194 Samuel McCain SMCCAIN 650.501.3876 06/07/01 SH_CLERK 3200 123 50 195 Vance Jones VJONES 650.501.4876 07/03/17 SH_CLERK 2800 123 50 196 Alana Walsh AWALSH 650.507.9811 06/04/24 SH_CLERK 3100 124 50 197 Kevin Feeney KFEENEY 650.507.9822 06/05/23 SH_CLERK 3000 124 50 198 Donald OConnell DOCONNEL 650.507.9833 07/06/21 SH_CLERK 2600 124 50 199 Douglas Grant DGRANT 650.507.9844 08/01/13 SH_CLERK 2600 124 50 200 Jennifer Whalen JWHALEN 515.123.4444 03/09/17 AD_ASST 4400 101 10 201 Michael Hartstein MHARTSTE 515.123.5555 04/02/17 MK_MAN 13000 100 20 202 Pat Fay PFAY 603.123.6666 05/08/17 MK_REP 6000 201 20 203 Susan Mavris SMAVRIS 515.123.7777 02/06/07 HR_REP 6500 101 40 204 Hermann Baer HBAER 515.123.8888 02/06/07 PR_REP 10000 101 70 205 Shelley Higgins SHIGGINS 515.123.8080 02/06/07 AC_MGR 12008 101 110 206 William Gietz WGIETZ 515.123.8181 02/06/07 AC_ACCOUNT 8300 205 110 */ -- 2. EMPLOYEES 테이블에서 모든 사원들의 정보를 FIRST_NAME 기준으로 오름차순으로 정령하여 조회하세요. SELECT * FROM EMPLOYEES ORDER BY FIRST_NAME ; /* 121 Adam Fripp AFRIPP 650.123.2234 05/04/10 ST_MAN 8200 100 50 196 Alana Walsh AWALSH 650.507.9811 06/04/24 SH_CLERK 3100 124 50 147 Alberto Errazuriz AERRAZUR 011.44.1344.429278 05/03/10 SA_MAN 12000 0.3 100 80 103 Alexander Hunold AHUNOLD 590.423.4567 06/01/03 IT_PROG 9000 102 60 115 Alexander Khoo AKHOO 515.127.4562 03/05/18 PU_CLERK 3100 114 30 185 Alexis Bull ABULL 650.509.2876 05/02/20 SH_CLERK 4100 121 50 158 Allan McEwen AMCEWEN 011.44.1345.829268 04/08/01 SA_REP 9000 0.35 146 80 175 Alyssa Hutton AHUTTON 011.44.1644.429266 05/03/19 SA_REP 8800 0.25 149 80 167 Amit Banda ABANDA 011.44.1346.729268 08/04/21 SA_REP 6200 0.1 147 80 187 Anthony Cabrio ACABRIO 650.509.4876 07/02/07 SH_CLERK 3000 121 50 193 Britney Everett BEVERETT 650.501.2876 05/03/03 SH_CLERK 3900 123 50 104 Bruce Ernst BERNST 590.423.4568 07/05/21 IT_PROG 6000 103 60 179 Charles Johnson CJOHNSON 011.44.1644.429262 08/01/04 SA_REP 6200 0.1 149 80 153 Christopher Olsen COLSEN 011.44.1344.498718 06/03/30 SA_REP 8000 0.2 145 80 162 Clara Vishney CVISHNEY 011.44.1346.129268 05/11/11 SA_REP 10500 0.25 147 80 142 Curtis Davies CDAVIES 650.121.2994 05/01/29 ST_CLERK 3100 124 50 109 Daniel Faviet DFAVIET 515.124.4169 02/08/16 FI_ACCOUNT 9000 108 100 163 Danielle Greene DGREENE 011.44.1346.229268 07/03/19 SA_REP 9500 0.15 147 80 105 David Austin DAUSTIN 590.423.4569 05/06/25 IT_PROG 4800 103 60 151 David Bernstein DBERNSTE 011.44.1344.345268 05/03/24 SA_REP 9500 0.25 145 80 165 David Lee DLEE 011.44.1346.529268 08/02/23 SA_REP 6800 0.1 147 80 114 Den Raphaely DRAPHEAL 515.127.4561 02/12/07 PU_MAN 11000 100 30 107 Diana Lorentz DLORENTZ 590.423.5567 07/02/07 IT_PROG 4200 103 60 198 Donald OConnell DOCONNEL 650.507.9833 07/06/21 SH_CLERK 2600 124 50 199 Douglas Grant DGRANT 650.507.9844 08/01/13 SH_CLERK 2600 124 50 149 Eleni Zlotkey EZLOTKEY 011.44.1344.429018 08/01/29 SA_MAN 10500 0.2 100 80 172 Elizabeth Bates EBATES 011.44.1343.529268 07/03/24 SA_REP 7300 0.15 148 80 174 Ellen Abel EABEL 011.44.1644.429267 04/05/11 SA_REP 11000 0.3 149 80 148 Gerald Cambrault GCAMBRAU 011.44.1344.619268 07/10/15 SA_MAN 11000 0.3 100 80 183 Girard Geoni GGEONI 650.507.9879 08/02/03 SH_CLERK 2800 120 50 118 Guy Himuro GHIMURO 515.127.4565 06/11/15 PU_CLERK 2600 114 30 169 Harrison Bloom HBLOOM 011.44.1343.829268 06/03/23 SA_REP 10000 0.2 148 80 136 Hazel Philtanker HPHILTAN 650.127.1634 08/02/06 ST_CLERK 2200 122 50 204 Hermann Baer HBAER 515.123.8888 02/06/07 PR_REP 10000 101 70 126 Irene Mikkilineni IMIKKILI 650.124.1224 06/09/28 ST_CLERK 2700 120 50 111 Ismael Sciarra ISCIARRA 515.124.4369 05/09/30 FI_ACCOUNT 7700 108 100 177 Jack Livingston JLIVINGS 011.44.1644.429264 06/04/23 SA_REP 8400 0.2 149 80 131 James Marlow JAMRLOW 650.124.7234 05/02/16 ST_CLERK 2500 121 50 127 James Landry JLANDRY 650.124.1334 07/01/14 ST_CLERK 2400 120 50 156 Janette King JKING 011.44.1345.429268 04/01/30 SA_REP 10000 0.35 146 80 133 Jason Mallin JMALLIN 650.127.1934 04/06/14 ST_CLERK 3300 122 50 181 Jean Fleaur JFLEAUR 650.507.9877 06/02/23 SH_CLERK 3100 120 50 200 Jennifer Whalen JWHALEN 515.123.4444 03/09/17 AD_ASST 4400 101 10 189 Jennifer Dilly JDILLY 650.505.2876 05/08/13 SH_CLERK 3600 122 50 139 John Seo JSEO 650.121.2019 06/02/12 ST_CLERK 2700 123 50 145 John Russell JRUSSEL 011.44.1344.429268 04/10/01 SA_MAN 14000 0.4 100 80 110 John Chen JCHEN 515.124.4269 05/09/28 FI_ACCOUNT 8200 108 100 176 Jonathon Taylor JTAYLOR 011.44.1644.429265 06/03/24 SA_REP 8600 0.2 149 80 112 Jose Manuel Urman JMURMAN 515.124.4469 06/03/07 FI_ACCOUNT 7800 108 100 140 Joshua Patel JPATEL 650.121.1834 06/04/06 ST_CLERK 2500 123 50 186 Julia Dellinger JDELLING 650.509.3876 06/06/24 SH_CLERK 3400 121 50 125 Julia Nayer JNAYER 650.124.1214 05/07/16 ST_CLERK 3200 120 50 119 Karen Colmenares KCOLMENA 515.127.4566 07/08/10 PU_CLERK 2500 114 30 146 Karen Partners KPARTNER 011.44.1344.467268 05/01/05 SA_MAN 13500 0.3 100 80 188 Kelly Chung KCHUNG 650.505.1876 05/06/14 SH_CLERK 3800 122 50 197 Kevin Feeney KFEENEY 650.507.9822 06/05/23 SH_CLERK 3000 124 50 124 Kevin Mourgos KMOURGOS 650.123.5234 07/11/16 ST_MAN 5800 100 50 135 Ki Gee KGEE 650.127.1734 07/12/12 ST_CLERK 2400 122 50 178 Kimberely Grant KGRANT 011.44.1644.429263 07/05/24 SA_REP 7000 0.15 149 129 Laura Bissot LBISSOT 650.124.5234 05/08/20 ST_CLERK 3300 121 50 102 Lex De Haan LDEHAAN 515.123.4569 01/01/13 AD_VP 17000 100 90 159 Lindsey Smith LSMITH 011.44.1345.729268 05/03/10 SA_REP 8000 0.3 146 80 168 Lisa Ozer LOZER 011.44.1343.929268 05/03/11 SA_REP 11500 0.25 148 80 160 Louise Doran LDORAN 011.44.1345.629268 05/12/15 SA_REP 7500 0.3 146 80 113 Luis Popp LPOPP 515.124.4567 07/12/07 FI_ACCOUNT 6900 108 100 182 Martha Sullivan MSULLIVA 650.507.9878 07/06/21 SH_CLERK 2500 120 50 164 Mattea Marvins MMARVINS 011.44.1346.329268 08/01/24 SA_REP 7200 0.1 147 80 120 Matthew Weiss MWEISS 650.123.1234 04/07/18 ST_MAN 8000 100 50 201 Michael Hartstein MHARTSTE 515.123.5555 04/02/17 MK_MAN 13000 100 20 134 Michael Rogers MROGERS 650.127.1834 06/08/26 ST_CLERK 2900 122 50 130 Mozhe Atkinson MATKINSO 650.124.6234 05/10/30 ST_CLERK 2800 121 50 108 Nancy Greenberg NGREENBE 515.124.4569 02/08/17 FI_MGR 12008 101 100 184 Nandita Sarchand NSARCHAN 650.509.1876 04/01/27 SH_CLERK 4200 121 50 154 Nanette Cambrault NCAMBRAU 011.44.1344.987668 06/12/09 SA_REP 7500 0.2 145 80 101 Neena Kochhar NKOCHHAR 515.123.4568 05/09/21 AD_VP 17000 100 90 155 Oliver Tuvault OTUVAULT 011.44.1344.486508 07/11/23 SA_REP 7000 0.15 145 80 202 Pat Fay PFAY 603.123.6666 05/08/17 MK_REP 6000 201 20 157 Patrick Sully PSULLY 011.44.1345.929268 04/03/04 SA_REP 9500 0.35 146 80 122 Payam Kaufling PKAUFLIN 650.123.3234 03/05/01 ST_MAN 7900 100 50 152 Peter Hall PHALL 011.44.1344.478968 05/08/20 SA_REP 9000 0.25 145 80 144 Peter Vargas PVARGAS 650.121.2004 06/07/09 ST_CLERK 2500 124 50 150 Peter Tucker PTUCKER 011.44.1344.129268 05/01/30 SA_REP 10000 0.3 145 80 143 Randall Matos RMATOS 650.121.2874 06/03/15 ST_CLERK 2600 124 50 191 Randall Perkins RPERKINS 650.505.4876 07/12/19 SH_CLERK 2500 122 50 137 Renske Ladwig RLADWIG 650.121.1234 03/07/14 ST_CLERK 3600 123 50 194 Samuel McCain SMCCAIN 650.501.3876 06/07/01 SH_CLERK 3200 123 50 192 Sarah Bell SBELL 650.501.1876 04/02/04 SH_CLERK 4000 123 50 161 Sarath Sewall SSEWALL 011.44.1345.529268 06/11/03 SA_REP 7000 0.25 146 80 123 Shanta Vollman SVOLLMAN 650.123.4234 05/10/10 ST_MAN 6500 100 50 205 Shelley Higgins SHIGGINS 515.123.8080 02/06/07 AC_MGR 12008 101 110 116 Shelli Baida SBAIDA 515.127.4563 05/12/24 PU_CLERK 2900 114 30 117 Sigal Tobias STOBIAS 515.127.4564 05/07/24 PU_CLERK 2800 114 30 138 Stephen Stiles SSTILES 650.121.2034 05/10/26 ST_CLERK 3200 123 50 100 Steven King SKING 515.123.4567 03/06/17 AD_PRES 24000 90 128 Steven Markle SMARKLE 650.124.1434 08/03/08 ST_CLERK 2200 120 50 166 Sundar Ande SANDE 011.44.1346.629268 08/03/24 SA_REP 6400 0.1 147 80 173 Sundita Kumar SKUMAR 011.44.1343.329268 08/04/21 SA_REP 6100 0.1 148 80 203 Susan Mavris SMAVRIS 515.123.7777 02/06/07 HR_REP 6500 101 40 132 TJ Olson TJOLSON 650.124.8234 07/04/10 ST_CLERK 2100 121 50 170 Tayler Fox TFOX 011.44.1343.729268 06/01/24 SA_REP 9600 0.2 148 80 190 Timothy Gates TGATES 650.505.3876 06/07/11 SH_CLERK 2900 122 50 141 Trenna Rajs TRAJS 650.121.8009 03/10/17 ST_CLERK 3500 124 50 106 Valli Pataballa VPATABAL 590.423.4560 06/02/05 IT_PROG 4800 103 60 195 Vance Jones VJONES 650.501.4876 07/03/17 SH_CLERK 2800 123 50 206 William Gietz WGIETZ 515.123.8181 02/06/07 AC_ACCOUNT 8300 205 110 171 William Smith WSMITH 011.44.1343.629268 07/02/23 SA_REP 7400 0.15 148 80 180 Winston Taylor WTAYLOR 650.507.9876 06/01/24 SH_CLERK 3200 120 50 */ -- 3. EMPLOYEES 테이블에서 SALARY가 5000 이상인 사원들의 모든 정보를 조회하세요. SELECT * FROM EMPLOYEES WHERE SALARY >= 5000 ; /* 100 Steven King SKING 515.123.4567 03/06/17 AD_PRES 24000 90 101 Neena Kochhar NKOCHHAR 515.123.4568 05/09/21 AD_VP 17000 100 90 102 Lex De Haan LDEHAAN 515.123.4569 01/01/13 AD_VP 17000 100 90 103 Alexander Hunold AHUNOLD 590.423.4567 06/01/03 IT_PROG 9000 102 60 104 Bruce Ernst BERNST 590.423.4568 07/05/21 IT_PROG 6000 103 60 108 Nancy Greenberg NGREENBE 515.124.4569 02/08/17 FI_MGR 12008 101 100 109 Daniel Faviet DFAVIET 515.124.4169 02/08/16 FI_ACCOUNT 9000 108 100 110 John Chen JCHEN 515.124.4269 05/09/28 FI_ACCOUNT 8200 108 100 111 Ismael Sciarra ISCIARRA 515.124.4369 05/09/30 FI_ACCOUNT 7700 108 100 112 Jose Manuel Urman JMURMAN 515.124.4469 06/03/07 FI_ACCOUNT 7800 108 100 113 Luis Popp LPOPP 515.124.4567 07/12/07 FI_ACCOUNT 6900 108 100 114 Den Raphaely DRAPHEAL 515.127.4561 02/12/07 PU_MAN 11000 100 30 120 Matthew Weiss MWEISS 650.123.1234 04/07/18 ST_MAN 8000 100 50 121 Adam Fripp AFRIPP 650.123.2234 05/04/10 ST_MAN 8200 100 50 122 Payam Kaufling PKAUFLIN 650.123.3234 03/05/01 ST_MAN 7900 100 50 123 Shanta Vollman SVOLLMAN 650.123.4234 05/10/10 ST_MAN 6500 100 50 124 Kevin Mourgos KMOURGOS 650.123.5234 07/11/16 ST_MAN 5800 100 50 145 John Russell JRUSSEL 011.44.1344.429268 04/10/01 SA_MAN 14000 0.4 100 80 146 Karen Partners KPARTNER 011.44.1344.467268 05/01/05 SA_MAN 13500 0.3 100 80 147 Alberto Errazuriz AERRAZUR 011.44.1344.429278 05/03/10 SA_MAN 12000 0.3 100 80 148 Gerald Cambrault GCAMBRAU 011.44.1344.619268 07/10/15 SA_MAN 11000 0.3 100 80 149 Eleni Zlotkey EZLOTKEY 011.44.1344.429018 08/01/29 SA_MAN 10500 0.2 100 80 150 Peter Tucker PTUCKER 011.44.1344.129268 05/01/30 SA_REP 10000 0.3 145 80 151 David Bernstein DBERNSTE 011.44.1344.345268 05/03/24 SA_REP 9500 0.25 145 80 152 Peter Hall PHALL 011.44.1344.478968 05/08/20 SA_REP 9000 0.25 145 80 153 Christopher Olsen COLSEN 011.44.1344.498718 06/03/30 SA_REP 8000 0.2 145 80 154 Nanette Cambrault NCAMBRAU 011.44.1344.987668 06/12/09 SA_REP 7500 0.2 145 80 155 Oliver Tuvault OTUVAULT 011.44.1344.486508 07/11/23 SA_REP 7000 0.15 145 80 156 Janette King JKING 011.44.1345.429268 04/01/30 SA_REP 10000 0.35 146 80 157 Patrick Sully PSULLY 011.44.1345.929268 04/03/04 SA_REP 9500 0.35 146 80 158 Allan McEwen AMCEWEN 011.44.1345.829268 04/08/01 SA_REP 9000 0.35 146 80 159 Lindsey Smith LSMITH 011.44.1345.729268 05/03/10 SA_REP 8000 0.3 146 80 160 Louise Doran LDORAN 011.44.1345.629268 05/12/15 SA_REP 7500 0.3 146 80 161 Sarath Sewall SSEWALL 011.44.1345.529268 06/11/03 SA_REP 7000 0.25 146 80 162 Clara Vishney CVISHNEY 011.44.1346.129268 05/11/11 SA_REP 10500 0.25 147 80 163 Danielle Greene DGREENE 011.44.1346.229268 07/03/19 SA_REP 9500 0.15 147 80 164 Mattea Marvins MMARVINS 011.44.1346.329268 08/01/24 SA_REP 7200 0.1 147 80 165 David Lee DLEE 011.44.1346.529268 08/02/23 SA_REP 6800 0.1 147 80 166 Sundar Ande SANDE 011.44.1346.629268 08/03/24 SA_REP 6400 0.1 147 80 167 Amit Banda ABANDA 011.44.1346.729268 08/04/21 SA_REP 6200 0.1 147 80 168 Lisa Ozer LOZER 011.44.1343.929268 05/03/11 SA_REP 11500 0.25 148 80 169 Harrison Bloom HBLOOM 011.44.1343.829268 06/03/23 SA_REP 10000 0.2 148 80 170 Tayler Fox TFOX 011.44.1343.729268 06/01/24 SA_REP 9600 0.2 148 80 171 William Smith WSMITH 011.44.1343.629268 07/02/23 SA_REP 7400 0.15 148 80 172 Elizabeth Bates EBATES 011.44.1343.529268 07/03/24 SA_REP 7300 0.15 148 80 173 Sundita Kumar SKUMAR 011.44.1343.329268 08/04/21 SA_REP 6100 0.1 148 80 174 Ellen Abel EABEL 011.44.1644.429267 04/05/11 SA_REP 11000 0.3 149 80 175 Alyssa Hutton AHUTTON 011.44.1644.429266 05/03/19 SA_REP 8800 0.25 149 80 176 Jonathon Taylor JTAYLOR 011.44.1644.429265 06/03/24 SA_REP 8600 0.2 149 80 177 Jack Livingston JLIVINGS 011.44.1644.429264 06/04/23 SA_REP 8400 0.2 149 80 178 Kimberely Grant KGRANT 011.44.1644.429263 07/05/24 SA_REP 7000 0.15 149 179 Charles Johnson CJOHNSON 011.44.1644.429262 08/01/04 SA_REP 6200 0.1 149 80 201 Michael Hartstein MHARTSTE 515.123.5555 04/02/17 MK_MAN 13000 100 20 202 Pat Fay PFAY 603.123.6666 05/08/17 MK_REP 6000 201 20 203 Susan Mavris SMAVRIS 515.123.7777 02/06/07 HR_REP 6500 101 40 204 Hermann Baer HBAER 515.123.8888 02/06/07 PR_REP 10000 101 70 205 Shelley Higgins SHIGGINS 515.123.8080 02/06/07 AC_MGR 12008 101 110 206 William Gietz WGIETZ 515.123.8181 02/06/07 AC_ACCOUNT 8300 205 110 */ -- 4. EMPLOYEES 테이블에서 HIRE_DATE가 2001년 5월 13일 이후인 사원들의 모든 정보를 조회하세요. SELECT * FROM EMPLOYEES WHERE HIRE_DATE > TO_DATE('2001-05-13', 'YYYY-MM-DD') ; /* 100 Steven King SKING 515.123.4567 03/06/17 AD_PRES 24000 90 101 Neena Kochhar NKOCHHAR 515.123.4568 05/09/21 AD_VP 17000 100 90 103 Alexander Hunold AHUNOLD 590.423.4567 06/01/03 IT_PROG 9000 102 60 104 Bruce Ernst BERNST 590.423.4568 07/05/21 IT_PROG 6000 103 60 105 David Austin DAUSTIN 590.423.4569 05/06/25 IT_PROG 4800 103 60 106 Valli Pataballa VPATABAL 590.423.4560 06/02/05 IT_PROG 4800 103 60 107 Diana Lorentz DLORENTZ 590.423.5567 07/02/07 IT_PROG 4200 103 60 108 Nancy Greenberg NGREENBE 515.124.4569 02/08/17 FI_MGR 12008 101 100 109 Daniel Faviet DFAVIET 515.124.4169 02/08/16 FI_ACCOUNT 9000 108 100 110 John Chen JCHEN 515.124.4269 05/09/28 FI_ACCOUNT 8200 108 100 111 Ismael Sciarra ISCIARRA 515.124.4369 05/09/30 FI_ACCOUNT 7700 108 100 112 Jose Manuel Urman JMURMAN 515.124.4469 06/03/07 FI_ACCOUNT 7800 108 100 113 Luis Popp LPOPP 515.124.4567 07/12/07 FI_ACCOUNT 6900 108 100 114 Den Raphaely DRAPHEAL 515.127.4561 02/12/07 PU_MAN 11000 100 30 115 Alexander Khoo AKHOO 515.127.4562 03/05/18 PU_CLERK 3100 114 30 116 Shelli Baida SBAIDA 515.127.4563 05/12/24 PU_CLERK 2900 114 30 117 Sigal Tobias STOBIAS 515.127.4564 05/07/24 PU_CLERK 2800 114 30 118 Guy Himuro GHIMURO 515.127.4565 06/11/15 PU_CLERK 2600 114 30 119 Karen Colmenares KCOLMENA 515.127.4566 07/08/10 PU_CLERK 2500 114 30 120 Matthew Weiss MWEISS 650.123.1234 04/07/18 ST_MAN 8000 100 50 121 Adam Fripp AFRIPP 650.123.2234 05/04/10 ST_MAN 8200 100 50 122 Payam Kaufling PKAUFLIN 650.123.3234 03/05/01 ST_MAN 7900 100 50 123 Shanta Vollman SVOLLMAN 650.123.4234 05/10/10 ST_MAN 6500 100 50 124 Kevin Mourgos KMOURGOS 650.123.5234 07/11/16 ST_MAN 5800 100 50 125 Julia Nayer JNAYER 650.124.1214 05/07/16 ST_CLERK 3200 120 50 126 Irene Mikkilineni IMIKKILI 650.124.1224 06/09/28 ST_CLERK 2700 120 50 127 James Landry JLANDRY 650.124.1334 07/01/14 ST_CLERK 2400 120 50 128 Steven Markle SMARKLE 650.124.1434 08/03/08 ST_CLERK 2200 120 50 129 Laura Bissot LBISSOT 650.124.5234 05/08/20 ST_CLERK 3300 121 50 130 Mozhe Atkinson MATKINSO 650.124.6234 05/10/30 ST_CLERK 2800 121 50 131 James Marlow JAMRLOW 650.124.7234 05/02/16 ST_CLERK 2500 121 50 132 TJ Olson TJOLSON 650.124.8234 07/04/10 ST_CLERK 2100 121 50 133 Jason Mallin JMALLIN 650.127.1934 04/06/14 ST_CLERK 3300 122 50 134 Michael Rogers MROGERS 650.127.1834 06/08/26 ST_CLERK 2900 122 50 135 Ki Gee KGEE 650.127.1734 07/12/12 ST_CLERK 2400 122 50 136 Hazel Philtanker HPHILTAN 650.127.1634 08/02/06 ST_CLERK 2200 122 50 137 Renske Ladwig RLADWIG 650.121.1234 03/07/14 ST_CLERK 3600 123 50 138 Stephen Stiles SSTILES 650.121.2034 05/10/26 ST_CLERK 3200 123 50 139 John Seo JSEO 650.121.2019 06/02/12 ST_CLERK 2700 123 50 140 Joshua Patel JPATEL 650.121.1834 06/04/06 ST_CLERK 2500 123 50 141 Trenna Rajs TRAJS 650.121.8009 03/10/17 ST_CLERK 3500 124 50 142 Curtis Davies CDAVIES 650.121.2994 05/01/29 ST_CLERK 3100 124 50 143 Randall Matos RMATOS 650.121.2874 06/03/15 ST_CLERK 2600 124 50 144 Peter Vargas PVARGAS 650.121.2004 06/07/09 ST_CLERK 2500 124 50 145 John Russell JRUSSEL 011.44.1344.429268 04/10/01 SA_MAN 14000 0.4 100 80 146 Karen Partners KPARTNER 011.44.1344.467268 05/01/05 SA_MAN 13500 0.3 100 80 147 Alberto Errazuriz AERRAZUR 011.44.1344.429278 05/03/10 SA_MAN 12000 0.3 100 80 148 Gerald Cambrault GCAMBRAU 011.44.1344.619268 07/10/15 SA_MAN 11000 0.3 100 80 149 Eleni Zlotkey EZLOTKEY 011.44.1344.429018 08/01/29 SA_MAN 10500 0.2 100 80 150 Peter Tucker PTUCKER 011.44.1344.129268 05/01/30 SA_REP 10000 0.3 145 80 151 David Bernstein DBERNSTE 011.44.1344.345268 05/03/24 SA_REP 9500 0.25 145 80 152 Peter Hall PHALL 011.44.1344.478968 05/08/20 SA_REP 9000 0.25 145 80 153 Christopher Olsen COLSEN 011.44.1344.498718 06/03/30 SA_REP 8000 0.2 145 80 154 Nanette Cambrault NCAMBRAU 011.44.1344.987668 06/12/09 SA_REP 7500 0.2 145 80 155 Oliver Tuvault OTUVAULT 011.44.1344.486508 07/11/23 SA_REP 7000 0.15 145 80 156 Janette King JKING 011.44.1345.429268 04/01/30 SA_REP 10000 0.35 146 80 157 Patrick Sully PSULLY 011.44.1345.929268 04/03/04 SA_REP 9500 0.35 146 80 158 Allan McEwen AMCEWEN 011.44.1345.829268 04/08/01 SA_REP 9000 0.35 146 80 159 Lindsey Smith LSMITH 011.44.1345.729268 05/03/10 SA_REP 8000 0.3 146 80 160 Louise Doran LDORAN 011.44.1345.629268 05/12/15 SA_REP 7500 0.3 146 80 161 Sarath Sewall SSEWALL 011.44.1345.529268 06/11/03 SA_REP 7000 0.25 146 80 162 Clara Vishney CVISHNEY 011.44.1346.129268 05/11/11 SA_REP 10500 0.25 147 80 163 Danielle Greene DGREENE 011.44.1346.229268 07/03/19 SA_REP 9500 0.15 147 80 164 Mattea Marvins MMARVINS 011.44.1346.329268 08/01/24 SA_REP 7200 0.1 147 80 165 David Lee DLEE 011.44.1346.529268 08/02/23 SA_REP 6800 0.1 147 80 166 Sundar Ande SANDE 011.44.1346.629268 08/03/24 SA_REP 6400 0.1 147 80 167 Amit Banda ABANDA 011.44.1346.729268 08/04/21 SA_REP 6200 0.1 147 80 168 Lisa Ozer LOZER 011.44.1343.929268 05/03/11 SA_REP 11500 0.25 148 80 169 Harrison Bloom HBLOOM 011.44.1343.829268 06/03/23 SA_REP 10000 0.2 148 80 170 Tayler Fox TFOX 011.44.1343.729268 06/01/24 SA_REP 9600 0.2 148 80 171 William Smith WSMITH 011.44.1343.629268 07/02/23 SA_REP 7400 0.15 148 80 172 Elizabeth Bates EBATES 011.44.1343.529268 07/03/24 SA_REP 7300 0.15 148 80 173 Sundita Kumar SKUMAR 011.44.1343.329268 08/04/21 SA_REP 6100 0.1 148 80 174 Ellen Abel EABEL 011.44.1644.429267 04/05/11 SA_REP 11000 0.3 149 80 175 Alyssa Hutton AHUTTON 011.44.1644.429266 05/03/19 SA_REP 8800 0.25 149 80 176 Jonathon Taylor JTAYLOR 011.44.1644.429265 06/03/24 SA_REP 8600 0.2 149 80 177 Jack Livingston JLIVINGS 011.44.1644.429264 06/04/23 SA_REP 8400 0.2 149 80 178 Kimberely Grant KGRANT 011.44.1644.429263 07/05/24 SA_REP 7000 0.15 149 179 Charles Johnson CJOHNSON 011.44.1644.429262 08/01/04 SA_REP 6200 0.1 149 80 180 Winston Taylor WTAYLOR 650.507.9876 06/01/24 SH_CLERK 3200 120 50 181 Jean Fleaur JFLEAUR 650.507.9877 06/02/23 SH_CLERK 3100 120 50 182 Martha Sullivan MSULLIVA 650.507.9878 07/06/21 SH_CLERK 2500 120 50 183 Girard Geoni GGEONI 650.507.9879 08/02/03 SH_CLERK 2800 120 50 184 Nandita Sarchand NSARCHAN 650.509.1876 04/01/27 SH_CLERK 4200 121 50 185 Alexis Bull ABULL 650.509.2876 05/02/20 SH_CLERK 4100 121 50 186 Julia Dellinger JDELLING 650.509.3876 06/06/24 SH_CLERK 3400 121 50 187 Anthony Cabrio ACABRIO 650.509.4876 07/02/07 SH_CLERK 3000 121 50 188 Kelly Chung KCHUNG 650.505.1876 05/06/14 SH_CLERK 3800 122 50 189 Jennifer Dilly JDILLY 650.505.2876 05/08/13 SH_CLERK 3600 122 50 190 Timothy Gates TGATES 650.505.3876 06/07/11 SH_CLERK 2900 122 50 191 Randall Perkins RPERKINS 650.505.4876 07/12/19 SH_CLERK 2500 122 50 192 Sarah Bell SBELL 650.501.1876 04/02/04 SH_CLERK 4000 123 50 193 Britney Everett BEVERETT 650.501.2876 05/03/03 SH_CLERK 3900 123 50 194 Samuel McCain SMCCAIN 650.501.3876 06/07/01 SH_CLERK 3200 123 50 195 Vance Jones VJONES 650.501.4876 07/03/17 SH_CLERK 2800 123 50 196 Alana Walsh AWALSH 650.507.9811 06/04/24 SH_CLERK 3100 124 50 197 Kevin Feeney KFEENEY 650.507.9822 06/05/23 SH_CLERK 3000 124 50 198 Donald OConnell DOCONNEL 650.507.9833 07/06/21 SH_CLERK 2600 124 50 199 Douglas Grant DGRANT 650.507.9844 08/01/13 SH_CLERK 2600 124 50 200 Jennifer Whalen JWHALEN 515.123.4444 03/09/17 AD_ASST 4400 101 10 201 Michael Hartstein MHARTSTE 515.123.5555 04/02/17 MK_MAN 13000 100 20 202 Pat Fay PFAY 603.123.6666 05/08/17 MK_REP 6000 201 20 203 Susan Mavris SMAVRIS 515.123.7777 02/06/07 HR_REP 6500 101 40 204 Hermann Baer HBAER 515.123.8888 02/06/07 PR_REP 10000 101 70 205 Shelley Higgins SHIGGINS 515.123.8080 02/06/07 AC_MGR 12008 101 110 206 William Gietz WGIETZ 515.123.8181 02/06/07 AC_ACCOUNT 8300 205 110 */ -- 5. EMPLOYEES 테이블에서 FIRST_NAME이 J보다 큰 사원들의 사원번호, FIRST_NAME, LAST_NAME을 조회하세요. SELECT EMPLOYEE_ID , FIRST_NAME , LAST_NAME FROM EMPLOYEES WHERE FIRST_NAME > 'J' ; /* 100 Steven King 101 Neena Kochhar 102 Lex De Haan 106 Valli Pataballa 108 Nancy Greenberg 110 John Chen 112 Jose Manuel Urman 113 Luis Popp 116 Shelli Baida 117 Sigal Tobias 119 Karen Colmenares 120 Matthew Weiss 122 Payam Kaufling 123 Shanta Vollman 124 Kevin Mourgos 125 Julia Nayer 127 James Landry 128 Steven Markle 129 Laura Bissot 130 Mozhe Atkinson 131 James Marlow 132 TJ Olson 133 Jason Mallin 134 Michael Rogers 135 Ki Gee 137 Renske Ladwig 138 Stephen Stiles 139 John Seo 140 Joshua Patel 141 Trenna Rajs 143 Randall Matos 144 Peter Vargas 145 John Russell 146 Karen Partners 150 Peter Tucker 152 Peter Hall 154 Nanette Cambrault 155 Oliver Tuvault 156 Janette King 157 Patrick Sully 159 Lindsey Smith 160 Louise Doran 161 Sarath Sewall 164 Mattea Marvins 166 Sundar Ande 168 Lisa Ozer 170 Tayler Fox 171 William Smith 173 Sundita Kumar 176 Jonathon Taylor 177 Jack Livingston 178 Kimberely Grant 180 Winston Taylor 181 Jean Fleaur 182 Martha Sullivan 184 Nandita Sarchand 186 Julia Dellinger 188 Kelly Chung 189 Jennifer Dilly 190 Timothy Gates 191 Randall Perkins 192 Sarah Bell 194 Samuel McCain 195 Vance Jones 197 Kevin Feeney 200 Jennifer Whalen 201 Michael Hartstein 202 Pat Fay 203 Susan Mavris 205 Shelley Higgins 206 William Gietz */ -- 6. EMPLOYEES 테이블에서 자신의 상사가 없는 사원의 모든 정보를 조회하세요. SELECT * FROM EMPLOYEES WHERE MANAGER_ID IS NULL ; /* 100 Steven King SKING 515.123.4567 03/06/17 AD_PRES 24000 90 */ -- 7. EMPLOYEES 테이블에서 커미션을 못버는 사원들의 모든 정보를 조회하세요. SELECT * FROM EMPLOYEES WHERE COMMISSION_PCT IS NULL ; /* 100 Steven King SKING 515.123.4567 03/06/17 AD_PRES 24000 90 101 Neena Kochhar NKOCHHAR 515.123.4568 05/09/21 AD_VP 17000 100 90 102 Lex De Haan LDEHAAN 515.123.4569 01/01/13 AD_VP 17000 100 90 103 Alexander Hunold AHUNOLD 590.423.4567 06/01/03 IT_PROG 9000 102 60 104 Bruce Ernst BERNST 590.423.4568 07/05/21 IT_PROG 6000 103 60 105 David Austin DAUSTIN 590.423.4569 05/06/25 IT_PROG 4800 103 60 106 Valli Pataballa VPATABAL 590.423.4560 06/02/05 IT_PROG 4800 103 60 107 Diana Lorentz DLORENTZ 590.423.5567 07/02/07 IT_PROG 4200 103 60 108 Nancy Greenberg NGREENBE 515.124.4569 02/08/17 FI_MGR 12008 101 100 109 Daniel Faviet DFAVIET 515.124.4169 02/08/16 FI_ACCOUNT 9000 108 100 110 John Chen JCHEN 515.124.4269 05/09/28 FI_ACCOUNT 8200 108 100 111 Ismael Sciarra ISCIARRA 515.124.4369 05/09/30 FI_ACCOUNT 7700 108 100 112 Jose Manuel Urman JMURMAN 515.124.4469 06/03/07 FI_ACCOUNT 7800 108 100 113 Luis Popp LPOPP 515.124.4567 07/12/07 FI_ACCOUNT 6900 108 100 114 Den Raphaely DRAPHEAL 515.127.4561 02/12/07 PU_MAN 11000 100 30 115 Alexander Khoo AKHOO 515.127.4562 03/05/18 PU_CLERK 3100 114 30 116 Shelli Baida SBAIDA 515.127.4563 05/12/24 PU_CLERK 2900 114 30 117 Sigal Tobias STOBIAS 515.127.4564 05/07/24 PU_CLERK 2800 114 30 118 Guy Himuro GHIMURO 515.127.4565 06/11/15 PU_CLERK 2600 114 30 119 Karen Colmenares KCOLMENA 515.127.4566 07/08/10 PU_CLERK 2500 114 30 120 Matthew Weiss MWEISS 650.123.1234 04/07/18 ST_MAN 8000 100 50 121 Adam Fripp AFRIPP 650.123.2234 05/04/10 ST_MAN 8200 100 50 122 Payam Kaufling PKAUFLIN 650.123.3234 03/05/01 ST_MAN 7900 100 50 123 Shanta Vollman SVOLLMAN 650.123.4234 05/10/10 ST_MAN 6500 100 50 124 Kevin Mourgos KMOURGOS 650.123.5234 07/11/16 ST_MAN 5800 100 50 125 Julia Nayer JNAYER 650.124.1214 05/07/16 ST_CLERK 3200 120 50 126 Irene Mikkilineni IMIKKILI 650.124.1224 06/09/28 ST_CLERK 2700 120 50 127 James Landry JLANDRY 650.124.1334 07/01/14 ST_CLERK 2400 120 50 128 Steven Markle SMARKLE 650.124.1434 08/03/08 ST_CLERK 2200 120 50 129 Laura Bissot LBISSOT 650.124.5234 05/08/20 ST_CLERK 3300 121 50 130 Mozhe Atkinson MATKINSO 650.124.6234 05/10/30 ST_CLERK 2800 121 50 131 James Marlow JAMRLOW 650.124.7234 05/02/16 ST_CLERK 2500 121 50 132 TJ Olson TJOLSON 650.124.8234 07/04/10 ST_CLERK 2100 121 50 133 Jason Mallin JMALLIN 650.127.1934 04/06/14 ST_CLERK 3300 122 50 134 Michael Rogers MROGERS 650.127.1834 06/08/26 ST_CLERK 2900 122 50 135 Ki Gee KGEE 650.127.1734 07/12/12 ST_CLERK 2400 122 50 136 Hazel Philtanker HPHILTAN 650.127.1634 08/02/06 ST_CLERK 2200 122 50 137 Renske Ladwig RLADWIG 650.121.1234 03/07/14 ST_CLERK 3600 123 50 138 Stephen Stiles SSTILES 650.121.2034 05/10/26 ST_CLERK 3200 123 50 139 John Seo JSEO 650.121.2019 06/02/12 ST_CLERK 2700 123 50 140 Joshua Patel JPATEL 650.121.1834 06/04/06 ST_CLERK 2500 123 50 141 Trenna Rajs TRAJS 650.121.8009 03/10/17 ST_CLERK 3500 124 50 142 Curtis Davies CDAVIES 650.121.2994 05/01/29 ST_CLERK 3100 124 50 143 Randall Matos RMATOS 650.121.2874 06/03/15 ST_CLERK 2600 124 50 144 Peter Vargas PVARGAS 650.121.2004 06/07/09 ST_CLERK 2500 124 50 180 Winston Taylor WTAYLOR 650.507.9876 06/01/24 SH_CLERK 3200 120 50 181 Jean Fleaur JFLEAUR 650.507.9877 06/02/23 SH_CLERK 3100 120 50 182 Martha Sullivan MSULLIVA 650.507.9878 07/06/21 SH_CLERK 2500 120 50 183 Girard Geoni GGEONI 650.507.9879 08/02/03 SH_CLERK 2800 120 50 184 Nandita Sarchand NSARCHAN 650.509.1876 04/01/27 SH_CLERK 4200 121 50 185 Alexis Bull ABULL 650.509.2876 05/02/20 SH_CLERK 4100 121 50 186 Julia Dellinger JDELLING 650.509.3876 06/06/24 SH_CLERK 3400 121 50 187 Anthony Cabrio ACABRIO 650.509.4876 07/02/07 SH_CLERK 3000 121 50 188 Kelly Chung KCHUNG 650.505.1876 05/06/14 SH_CLERK 3800 122 50 189 Jennifer Dilly JDILLY 650.505.2876 05/08/13 SH_CLERK 3600 122 50 190 Timothy Gates TGATES 650.505.3876 06/07/11 SH_CLERK 2900 122 50 191 Randall Perkins RPERKINS 650.505.4876 07/12/19 SH_CLERK 2500 122 50 192 Sarah Bell SBELL 650.501.1876 04/02/04 SH_CLERK 4000 123 50 193 Britney Everett BEVERETT 650.501.2876 05/03/03 SH_CLERK 3900 123 50 194 Samuel McCain SMCCAIN 650.501.3876 06/07/01 SH_CLERK 3200 123 50 195 Vance Jones VJONES 650.501.4876 07/03/17 SH_CLERK 2800 123 50 196 Alana Walsh AWALSH 650.507.9811 06/04/24 SH_CLERK 3100 124 50 197 Kevin Feeney KFEENEY 650.507.9822 06/05/23 SH_CLERK 3000 124 50 198 Donald OConnell DOCONNEL 650.507.9833 07/06/21 SH_CLERK 2600 124 50 199 Douglas Grant DGRANT 650.507.9844 08/01/13 SH_CLERK 2600 124 50 200 Jennifer Whalen JWHALEN 515.123.4444 03/09/17 AD_ASST 4400 101 10 201 Michael Hartstein MHARTSTE 515.123.5555 04/02/17 MK_MAN 13000 100 20 202 Pat Fay PFAY 603.123.6666 05/08/17 MK_REP 6000 201 20 203 Susan Mavris SMAVRIS 515.123.7777 02/06/07 HR_REP 6500 101 40 204 Hermann Baer HBAER 515.123.8888 02/06/07 PR_REP 10000 101 70 205 Shelley Higgins SHIGGINS 515.123.8080 02/06/07 AC_MGR 12008 101 110 206 William Gietz WGIETZ 515.123.8181 02/06/07 AC_ACCOUNT 8300 205 110 */ -- 8. EMPLOYEES 테이블에서 상사가 없거나 커미션을 벌지 못하는 모든 사원들의 모든 정보를 조회하세요. SELECT * FROM EMPLOYEES WHERE MANAGER_ID IS NULL OR COMMISSION_PCT IS NULL ; /* 100 Steven King SKING 515.123.4567 03/06/17 AD_PRES 24000 90 101 Neena Kochhar NKOCHHAR 515.123.4568 05/09/21 AD_VP 17000 100 90 102 Lex De Haan LDEHAAN 515.123.4569 01/01/13 AD_VP 17000 100 90 103 Alexander Hunold AHUNOLD 590.423.4567 06/01/03 IT_PROG 9000 102 60 104 Bruce Ernst BERNST 590.423.4568 07/05/21 IT_PROG 6000 103 60 105 David Austin DAUSTIN 590.423.4569 05/06/25 IT_PROG 4800 103 60 106 Valli Pataballa VPATABAL 590.423.4560 06/02/05 IT_PROG 4800 103 60 107 Diana Lorentz DLORENTZ 590.423.5567 07/02/07 IT_PROG 4200 103 60 108 Nancy Greenberg NGREENBE 515.124.4569 02/08/17 FI_MGR 12008 101 100 109 Daniel Faviet DFAVIET 515.124.4169 02/08/16 FI_ACCOUNT 9000 108 100 110 John Chen JCHEN 515.124.4269 05/09/28 FI_ACCOUNT 8200 108 100 111 Ismael Sciarra ISCIARRA 515.124.4369 05/09/30 FI_ACCOUNT 7700 108 100 112 Jose Manuel Urman JMURMAN 515.124.4469 06/03/07 FI_ACCOUNT 7800 108 100 113 Luis Popp LPOPP 515.124.4567 07/12/07 FI_ACCOUNT 6900 108 100 114 Den Raphaely DRAPHEAL 515.127.4561 02/12/07 PU_MAN 11000 100 30 115 Alexander Khoo AKHOO 515.127.4562 03/05/18 PU_CLERK 3100 114 30 116 Shelli Baida SBAIDA 515.127.4563 05/12/24 PU_CLERK 2900 114 30 117 Sigal Tobias STOBIAS 515.127.4564 05/07/24 PU_CLERK 2800 114 30 118 Guy Himuro GHIMURO 515.127.4565 06/11/15 PU_CLERK 2600 114 30 119 Karen Colmenares KCOLMENA 515.127.4566 07/08/10 PU_CLERK 2500 114 30 120 Matthew Weiss MWEISS 650.123.1234 04/07/18 ST_MAN 8000 100 50 121 Adam Fripp AFRIPP 650.123.2234 05/04/10 ST_MAN 8200 100 50 122 Payam Kaufling PKAUFLIN 650.123.3234 03/05/01 ST_MAN 7900 100 50 123 Shanta Vollman SVOLLMAN 650.123.4234 05/10/10 ST_MAN 6500 100 50 124 Kevin Mourgos KMOURGOS 650.123.5234 07/11/16 ST_MAN 5800 100 50 125 Julia Nayer JNAYER 650.124.1214 05/07/16 ST_CLERK 3200 120 50 126 Irene Mikkilineni IMIKKILI 650.124.1224 06/09/28 ST_CLERK 2700 120 50 127 James Landry JLANDRY 650.124.1334 07/01/14 ST_CLERK 2400 120 50 128 Steven Markle SMARKLE 650.124.1434 08/03/08 ST_CLERK 2200 120 50 129 Laura Bissot LBISSOT 650.124.5234 05/08/20 ST_CLERK 3300 121 50 130 Mozhe Atkinson MATKINSO 650.124.6234 05/10/30 ST_CLERK 2800 121 50 131 James Marlow JAMRLOW 650.124.7234 05/02/16 ST_CLERK 2500 121 50 132 TJ Olson TJOLSON 650.124.8234 07/04/10 ST_CLERK 2100 121 50 133 Jason Mallin JMALLIN 650.127.1934 04/06/14 ST_CLERK 3300 122 50 134 Michael Rogers MROGERS 650.127.1834 06/08/26 ST_CLERK 2900 122 50 135 Ki Gee KGEE 650.127.1734 07/12/12 ST_CLERK 2400 122 50 136 Hazel Philtanker HPHILTAN 650.127.1634 08/02/06 ST_CLERK 2200 122 50 137 Renske Ladwig RLADWIG 650.121.1234 03/07/14 ST_CLERK 3600 123 50 138 Stephen Stiles SSTILES 650.121.2034 05/10/26 ST_CLERK 3200 123 50 139 John Seo JSEO 650.121.2019 06/02/12 ST_CLERK 2700 123 50 140 Joshua Patel JPATEL 650.121.1834 06/04/06 ST_CLERK 2500 123 50 141 Trenna Rajs TRAJS 650.121.8009 03/10/17 ST_CLERK 3500 124 50 142 Curtis Davies CDAVIES 650.121.2994 05/01/29 ST_CLERK 3100 124 50 143 Randall Matos RMATOS 650.121.2874 06/03/15 ST_CLERK 2600 124 50 144 Peter Vargas PVARGAS 650.121.2004 06/07/09 ST_CLERK 2500 124 50 180 Winston Taylor WTAYLOR 650.507.9876 06/01/24 SH_CLERK 3200 120 50 181 Jean Fleaur JFLEAUR 650.507.9877 06/02/23 SH_CLERK 3100 120 50 182 Martha Sullivan MSULLIVA 650.507.9878 07/06/21 SH_CLERK 2500 120 50 183 Girard Geoni GGEONI 650.507.9879 08/02/03 SH_CLERK 2800 120 50 184 Nandita Sarchand NSARCHAN 650.509.1876 04/01/27 SH_CLERK 4200 121 50 185 Alexis Bull ABULL 650.509.2876 05/02/20 SH_CLERK 4100 121 50 186 Julia Dellinger JDELLING 650.509.3876 06/06/24 SH_CLERK 3400 121 50 187 Anthony Cabrio ACABRIO 650.509.4876 07/02/07 SH_CLERK 3000 121 50 188 Kelly Chung KCHUNG 650.505.1876 05/06/14 SH_CLERK 3800 122 50 189 Jennifer Dilly JDILLY 650.505.2876 05/08/13 SH_CLERK 3600 122 50 190 Timothy Gates TGATES 650.505.3876 06/07/11 SH_CLERK 2900 122 50 191 Randall Perkins RPERKINS 650.505.4876 07/12/19 SH_CLERK 2500 122 50 192 Sarah Bell SBELL 650.501.1876 04/02/04 SH_CLERK 4000 123 50 193 Britney Everett BEVERETT 650.501.2876 05/03/03 SH_CLERK 3900 123 50 194 Samuel McCain SMCCAIN 650.501.3876 06/07/01 SH_CLERK 3200 123 50 195 Vance Jones VJONES 650.501.4876 07/03/17 SH_CLERK 2800 123 50 196 Alana Walsh AWALSH 650.507.9811 06/04/24 SH_CLERK 3100 124 50 197 Kevin Feeney KFEENEY 650.507.9822 06/05/23 SH_CLERK 3000 124 50 198 Donald OConnell DOCONNEL 650.507.9833 07/06/21 SH_CLERK 2600 124 50 199 Douglas Grant DGRANT 650.507.9844 08/01/13 SH_CLERK 2600 124 50 200 Jennifer Whalen JWHALEN 515.123.4444 03/09/17 AD_ASST 4400 101 10 201 Michael Hartstein MHARTSTE 515.123.5555 04/02/17 MK_MAN 13000 100 20 202 Pat Fay PFAY 603.123.6666 05/08/17 MK_REP 6000 201 20 203 Susan Mavris SMAVRIS 515.123.7777 02/06/07 HR_REP 6500 101 40 204 Hermann Baer HBAER 515.123.8888 02/06/07 PR_REP 10000 101 70 205 Shelley Higgins SHIGGINS 515.123.8080 02/06/07 AC_MGR 12008 101 110 206 William Gietz WGIETZ 515.123.8181 02/06/07 AC_ACCOUNT 8300 205 110 */ -- 9. EMPLOYEES 테이블에서 사원번호가 110번 이상인 사원들의 사원번호, 부서번호를 조회하세요. SELECT EMPLOYEE_ID , DEPARTMENT_ID FROM EMPLOYEES WHERE EMPLOYEE_ID >= 110 ; /* 110 100 111 100 112 100 113 100 114 30 115 30 116 30 117 30 118 30 119 30 120 50 121 50 122 50 123 50 124 50 125 50 126 50 127 50 128 50 129 50 130 50 131 50 132 50 133 50 134 50 135 50 136 50 137 50 138 50 139 50 140 50 141 50 142 50 143 50 144 50 145 80 146 80 147 80 148 80 149 80 150 80 151 80 152 80 153 80 154 80 155 80 156 80 157 80 158 80 159 80 160 80 161 80 162 80 163 80 164 80 165 80 166 80 167 80 168 80 169 80 170 80 171 80 172 80 173 80 174 80 175 80 176 80 177 80 178 179 80 180 50 181 50 182 50 183 50 184 50 185 50 186 50 187 50 188 50 189 50 190 50 191 50 192 50 193 50 194 50 195 50 196 50 197 50 198 50 199 50 200 10 201 20 202 20 203 40 204 70 205 110 206 110 */ -- 10. EMPLOYEES 테이블에서 자신의 상사가 있는 사원들을 DEPARTMENT_ID를 기준으로 내림차순 정렬하여 조회하세요. SELECT * FROM EMPLOYEES WHERE MANAGER_ID IS NOT NULL ORDER BY DEPARTMENT_ID DESC ; /* 178 Kimberely Grant KGRANT 011.44.1644.429263 07/05/24 SA_REP 7000 0.15 149 205 Shelley Higgins SHIGGINS 515.123.8080 02/06/07 AC_MGR 12008 101 110 206 William Gietz WGIETZ 515.123.8181 02/06/07 AC_ACCOUNT 8300 205 110 111 Ismael Sciarra ISCIARRA 515.124.4369 05/09/30 FI_ACCOUNT 7700 108 100 113 Luis Popp LPOPP 515.124.4567 07/12/07 FI_ACCOUNT 6900 108 100 110 John Chen JCHEN 515.124.4269 05/09/28 FI_ACCOUNT 8200 108 100 109 Daniel Faviet DFAVIET 515.124.4169 02/08/16 FI_ACCOUNT 9000 108 100 108 Nancy Greenberg NGREENBE 515.124.4569 02/08/17 FI_MGR 12008 101 100 112 Jose Manuel Urman JMURMAN 515.124.4469 06/03/07 FI_ACCOUNT 7800 108 100 101 Neena Kochhar NKOCHHAR 515.123.4568 05/09/21 AD_VP 17000 100 90 102 Lex De Haan LDEHAAN 515.123.4569 01/01/13 AD_VP 17000 100 90 145 John Russell JRUSSEL 011.44.1344.429268 04/10/01 SA_MAN 14000 0.4 100 80 179 Charles Johnson CJOHNSON 011.44.1644.429262 08/01/04 SA_REP 6200 0.1 149 80 147 Alberto Errazuriz AERRAZUR 011.44.1344.429278 05/03/10 SA_MAN 12000 0.3 100 80 148 Gerald Cambrault GCAMBRAU 011.44.1344.619268 07/10/15 SA_MAN 11000 0.3 100 80 149 Eleni Zlotkey EZLOTKEY 011.44.1344.429018 08/01/29 SA_MAN 10500 0.2 100 80 150 Peter Tucker PTUCKER 011.44.1344.129268 05/01/30 SA_REP 10000 0.3 145 80 151 David Bernstein DBERNSTE 011.44.1344.345268 05/03/24 SA_REP 9500 0.25 145 80 152 Peter Hall PHALL 011.44.1344.478968 05/08/20 SA_REP 9000 0.25 145 80 153 Christopher Olsen COLSEN 011.44.1344.498718 06/03/30 SA_REP 8000 0.2 145 80 154 Nanette Cambrault NCAMBRAU 011.44.1344.987668 06/12/09 SA_REP 7500 0.2 145 80 155 Oliver Tuvault OTUVAULT 011.44.1344.486508 07/11/23 SA_REP 7000 0.15 145 80 156 Janette King JKING 011.44.1345.429268 04/01/30 SA_REP 10000 0.35 146 80 157 Patrick Sully PSULLY 011.44.1345.929268 04/03/04 SA_REP 9500 0.35 146 80 158 Allan McEwen AMCEWEN 011.44.1345.829268 04/08/01 SA_REP 9000 0.35 146 80 159 Lindsey Smith LSMITH 011.44.1345.729268 05/03/10 SA_REP 8000 0.3 146 80 160 Louise Doran LDORAN 011.44.1345.629268 05/12/15 SA_REP 7500 0.3 146 80 161 Sarath Sewall SSEWALL 011.44.1345.529268 06/11/03 SA_REP 7000 0.25 146 80 162 Clara Vishney CVISHNEY 011.44.1346.129268 05/11/11 SA_REP 10500 0.25 147 80 163 Danielle Greene DGREENE 011.44.1346.229268 07/03/19 SA_REP 9500 0.15 147 80 164 Mattea Marvins MMARVINS 011.44.1346.329268 08/01/24 SA_REP 7200 0.1 147 80 165 David Lee DLEE 011.44.1346.529268 08/02/23 SA_REP 6800 0.1 147 80 166 Sundar Ande SANDE 011.44.1346.629268 08/03/24 SA_REP 6400 0.1 147 80 167 Amit Banda ABANDA 011.44.1346.729268 08/04/21 SA_REP 6200 0.1 147 80 168 Lisa Ozer LOZER 011.44.1343.929268 05/03/11 SA_REP 11500 0.25 148 80 169 Harrison Bloom HBLOOM 011.44.1343.829268 06/03/23 SA_REP 10000 0.2 148 80 170 Tayler Fox TFOX 011.44.1343.729268 06/01/24 SA_REP 9600 0.2 148 80 171 William Smith WSMITH 011.44.1343.629268 07/02/23 SA_REP 7400 0.15 148 80 172 Elizabeth Bates EBATES 011.44.1343.529268 07/03/24 SA_REP 7300 0.15 148 80 173 Sundita Kumar SKUMAR 011.44.1343.329268 08/04/21 SA_REP 6100 0.1 148 80 174 Ellen Abel EABEL 011.44.1644.429267 04/05/11 SA_REP 11000 0.3 149 80 175 Alyssa Hutton AHUTTON 011.44.1644.429266 05/03/19 SA_REP 8800 0.25 149 80 176 Jonathon Taylor JTAYLOR 011.44.1644.429265 06/03/24 SA_REP 8600 0.2 149 80 177 Jack Livingston JLIVINGS 011.44.1644.429264 06/04/23 SA_REP 8400 0.2 149 80 146 Karen Partners KPARTNER 011.44.1344.467268 05/01/05 SA_MAN 13500 0.3 100 80 204 Hermann Baer HBAER 515.123.8888 02/06/07 PR_REP 10000 101 70 103 Alexander Hunold AHUNOLD 590.423.4567 06/01/03 IT_PROG 9000 102 60 104 Bruce Ernst BERNST 590.423.4568 07/05/21 IT_PROG 6000 103 60 107 Diana Lorentz DLORENTZ 590.423.5567 07/02/07 IT_PROG 4200 103 60 106 Valli Pataballa VPATABAL 590.423.4560 06/02/05 IT_PROG 4800 103 60 105 David Austin DAUSTIN 590.423.4569 05/06/25 IT_PROG 4800 103 60 120 Matthew Weiss MWEISS 650.123.1234 04/07/18 ST_MAN 8000 100 50 199 Douglas Grant DGRANT 650.507.9844 08/01/13 SH_CLERK 2600 124 50 122 Payam Kaufling PKAUFLIN 650.123.3234 03/05/01 ST_MAN 7900 100 50 123 Shanta Vollman SVOLLMAN 650.123.4234 05/10/10 ST_MAN 6500 100 50 124 Kevin Mourgos KMOURGOS 650.123.5234 07/11/16 ST_MAN 5800 100 50 125 Julia Nayer JNAYER 650.124.1214 05/07/16 ST_CLERK 3200 120 50 126 Irene Mikkilineni IMIKKILI 650.124.1224 06/09/28 ST_CLERK 2700 120 50 127 James Landry JLANDRY 650.124.1334 07/01/14 ST_CLERK 2400 120 50 128 Steven Markle SMARKLE 650.124.1434 08/03/08 ST_CLERK 2200 120 50 129 Laura Bissot LBISSOT 650.124.5234 05/08/20 ST_CLERK 3300 121 50 130 Mozhe Atkinson MATKINSO 650.124.6234 05/10/30 ST_CLERK 2800 121 50 131 James Marlow JAMRLOW 650.124.7234 05/02/16 ST_CLERK 2500 121 50 132 TJ Olson TJOLSON 650.124.8234 07/04/10 ST_CLERK 2100 121 50 133 Jason Mallin JMALLIN 650.127.1934 04/06/14 ST_CLERK 3300 122 50 134 Michael Rogers MROGERS 650.127.1834 06/08/26 ST_CLERK 2900 122 50 135 Ki Gee KGEE 650.127.1734 07/12/12 ST_CLERK 2400 122 50 136 Hazel Philtanker HPHILTAN 650.127.1634 08/02/06 ST_CLERK 2200 122 50 137 Renske Ladwig RLADWIG 650.121.1234 03/07/14 ST_CLERK 3600 123 50 138 Stephen Stiles SSTILES 650.121.2034 05/10/26 ST_CLERK 3200 123 50 139 John Seo JSEO 650.121.2019 06/02/12 ST_CLERK 2700 123 50 140 Joshua Patel JPATEL 650.121.1834 06/04/06 ST_CLERK 2500 123 50 141 Trenna Rajs TRAJS 650.121.8009 03/10/17 ST_CLERK 3500 124 50 142 Curtis Davies CDAVIES 650.121.2994 05/01/29 ST_CLERK 3100 124 50 143 Randall Matos RMATOS 650.121.2874 06/03/15 ST_CLERK 2600 124 50 144 Peter Vargas PVARGAS 650.121.2004 06/07/09 ST_CLERK 2500 124 50 180 Winston Taylor WTAYLOR 650.507.9876 06/01/24 SH_CLERK 3200 120 50 181 Jean Fleaur JFLEAUR 650.507.9877 06/02/23 SH_CLERK 3100 120 50 182 Martha Sullivan MSULLIVA 650.507.9878 07/06/21 SH_CLERK 2500 120 50 183 Girard Geoni GGEONI 650.507.9879 08/02/03 SH_CLERK 2800 120 50 184 Nandita Sarchand NSARCHAN 650.509.1876 04/01/27 SH_CLERK 4200 121 50 185 Alexis Bull ABULL 650.509.2876 05/02/20 SH_CLERK 4100 121 50 186 Julia Dellinger JDELLING 650.509.3876 06/06/24 SH_CLERK 3400 121 50 187 Anthony Cabrio ACABRIO 650.509.4876 07/02/07 SH_CLERK 3000 121 50 188 Kelly Chung KCHUNG 650.505.1876 05/06/14 SH_CLERK 3800 122 50 189 Jennifer Dilly JDILLY 650.505.2876 05/08/13 SH_CLERK 3600 122 50 190 Timothy Gates TGATES 650.505.3876 06/07/11 SH_CLERK 2900 122 50 191 Randall Perkins RPERKINS 650.505.4876 07/12/19 SH_CLERK 2500 122 50 192 Sarah Bell SBELL 650.501.1876 04/02/04 SH_CLERK 4000 123 50 193 Britney Everett BEVERETT 650.501.2876 05/03/03 SH_CLERK 3900 123 50 194 Samuel McCain SMCCAIN 650.501.3876 06/07/01 SH_CLERK 3200 123 50 195 Vance Jones VJONES 650.501.4876 07/03/17 SH_CLERK 2800 123 50 196 Alana Walsh AWALSH 650.507.9811 06/04/24 SH_CLERK 3100 124 50 197 Kevin Feeney KFEENEY 650.507.9822 06/05/23 SH_CLERK 3000 124 50 198 Donald OConnell DOCONNEL 650.507.9833 07/06/21 SH_CLERK 2600 124 50 121 Adam Fripp AFRIPP 650.123.2234 05/04/10 ST_MAN 8200 100 50 203 Susan Mavris SMAVRIS 515.123.7777 02/06/07 HR_REP 6500 101 40 114 Den Raphaely DRAPHEAL 515.127.4561 02/12/07 PU_MAN 11000 100 30 115 Alexander Khoo AKHOO 515.127.4562 03/05/18 PU_CLERK 3100 114 30 119 Karen Colmenares KCOLMENA 515.127.4566 07/08/10 PU_CLERK 2500 114 30 117 Sigal Tobias STOBIAS 515.127.4564 05/07/24 PU_CLERK 2800 114 30 118 Guy Himuro GHIMURO 515.127.4565 06/11/15 PU_CLERK 2600 114 30 116 Shelli Baida SBAIDA 515.127.4563 05/12/24 PU_CLERK 2900 114 30 202 Pat Fay PFAY 603.123.6666 05/08/17 MK_REP 6000 201 20 201 Michael Hartstein MHARTSTE 515.123.5555 04/02/17 MK_MAN 13000 100 20 200 Jennifer Whalen JWHALEN 515.123.4444 03/09/17 AD_ASST 4400 101 10 */ -- 11. 상사인 사원들의 사원번호를 조회하세요.(중복이 없어야함.) SELECT DISTINCT MANAGER_ID FROM EMPLOYEES WHERE MANAGER_ID IS NOT NULL ; /* 100 101 102 103 108 114 120 121 122 123 124 145 146 147 148 149 201 205 */ -- 12. DEPARTMENTS 테이블에서 80번 부서의 부서명(DEPARTMENT_NAME)을 조회하세요. SELECT DEPARTMENT_NAME FROM DEPARTMENTS WHERE DEPARTMENT_ID = 80 ; /* Sales */ -- 13. EMPLOYEES 테이블에서 JOB_ID가 'IT_PROG', 'PU_MAN', 'ST_CLERK'인 사원들의 모든 정보를 조회하세요. SELECT * FROM EMPLOYEES WHERE JOB_ID IN('IT_PROG', 'PU_MAN', 'ST_CLERK') ; /* 103 Alexander Hunold AHUNOLD 590.423.4567 06/01/03 IT_PROG 9000 102 60 104 Bruce Ernst BERNST 590.423.4568 07/05/21 IT_PROG 6000 103 60 105 David Austin DAUSTIN 590.423.4569 05/06/25 IT_PROG 4800 103 60 106 Valli Pataballa VPATABAL 590.423.4560 06/02/05 IT_PROG 4800 103 60 107 Diana Lorentz DLORENTZ 590.423.5567 07/02/07 IT_PROG 4200 103 60 114 Den Raphaely DRAPHEAL 515.127.4561 02/12/07 PU_MAN 11000 100 30 125 Julia Nayer JNAYER 650.124.1214 05/07/16 ST_CLERK 3200 120 50 126 Irene Mikkilineni IMIKKILI 650.124.1224 06/09/28 ST_CLERK 2700 120 50 127 James Landry JLANDRY 650.124.1334 07/01/14 ST_CLERK 2400 120 50 128 Steven Markle SMARKLE 650.124.1434 08/03/08 ST_CLERK 2200 120 50 129 Laura Bissot LBISSOT 650.124.5234 05/08/20 ST_CLERK 3300 121 50 130 Mozhe Atkinson MATKINSO 650.124.6234 05/10/30 ST_CLERK 2800 121 50 131 James Marlow JAMRLOW 650.124.7234 05/02/16 ST_CLERK 2500 121 50 132 TJ Olson TJOLSON 650.124.8234 07/04/10 ST_CLERK 2100 121 50 133 Jason Mallin JMALLIN 650.127.1934 04/06/14 ST_CLERK 3300 122 50 134 Michael Rogers MROGERS 650.127.1834 06/08/26 ST_CLERK 2900 122 50 135 Ki Gee KGEE 650.127.1734 07/12/12 ST_CLERK 2400 122 50 136 Hazel Philtanker HPHILTAN 650.127.1634 08/02/06 ST_CLERK 2200 122 50 137 Renske Ladwig RLADWIG 650.121.1234 03/07/14 ST_CLERK 3600 123 50 138 Stephen Stiles SSTILES 650.121.2034 05/10/26 ST_CLERK 3200 123 50 139 John Seo JSEO 650.121.2019 06/02/12 ST_CLERK 2700 123 50 140 Joshua Patel JPATEL 650.121.1834 06/04/06 ST_CLERK 2500 123 50 141 Trenna Rajs TRAJS 650.121.8009 03/10/17 ST_CLERK 3500 124 50 142 Curtis Davies CDAVIES 650.121.2994 05/01/29 ST_CLERK 3100 124 50 143 Randall Matos RMATOS 650.121.2874 06/03/15 ST_CLERK 2600 124 50 144 Peter Vargas PVARGAS 650.121.2004 06/07/09 ST_CLERK 2500 124 50 */ -- 14. EMPLOYEES 테이블에서 JOB_ID가 'IT_PROG', 'PU_MAN', 'ST_CLERK'이 아니고 입사일이 2004년 이후인 사원들의 입사일, JOB_ID, 사번을 조회하세요. -- 사원번호를 기준으로 내림차순 정렬 SELECT HIRE_DATE , JOB_ID , EMPLOYEE_ID FROM EMPLOYEES WHERE JOB_ID NOT IN('IT_PROG', 'PU_MAN', 'ST_CLERK') AND HIRE_DATE >= TO_DATE('2004-01-01', 'YYYY-MM-DD') ORDER BY EMPLOYEE_ID DESC ; /* 05/08/17 MK_REP 202 04/02/17 MK_MAN 201 08/01/13 SH_CLERK 199 07/06/21 SH_CLERK 198 06/05/23 SH_CLERK 197 06/04/24 SH_CLERK 196 07/03/17 SH_CLERK 195 06/07/01 SH_CLERK 194 05/03/03 SH_CLERK 193 04/02/04 SH_CLERK 192 07/12/19 SH_CLERK 191 06/07/11 SH_CLERK 190 05/08/13 SH_CLERK 189 05/06/14 SH_CLERK 188 07/02/07 SH_CLERK 187 06/06/24 SH_CLERK 186 05/02/20 SH_CLERK 185 04/01/27 SH_CLERK 184 08/02/03 SH_CLERK 183 07/06/21 SH_CLERK 182 06/02/23 SH_CLERK 181 06/01/24 SH_CLERK 180 08/01/04 SA_REP 179 07/05/24 SA_REP 178 06/04/23 SA_REP 177 06/03/24 SA_REP 176 05/03/19 SA_REP 175 04/05/11 SA_REP 174 08/04/21 SA_REP 173 07/03/24 SA_REP 172 07/02/23 SA_REP 171 06/01/24 SA_REP 170 06/03/23 SA_REP 169 05/03/11 SA_REP 168 08/04/21 SA_REP 167 08/03/24 SA_REP 166 08/02/23 SA_REP 165 08/01/24 SA_REP 164 07/03/19 SA_REP 163 05/11/11 SA_REP 162 06/11/03 SA_REP 161 05/12/15 SA_REP 160 05/03/10 SA_REP 159 04/08/01 SA_REP 158 04/03/04 SA_REP 157 04/01/30 SA_REP 156 07/11/23 SA_REP 155 06/12/09 SA_REP 154 06/03/30 SA_REP 153 05/08/20 SA_REP 152 05/03/24 SA_REP 151 05/01/30 SA_REP 150 08/01/29 SA_MAN 149 07/10/15 SA_MAN 148 05/03/10 SA_MAN 147 05/01/05 SA_MAN 146 04/10/01 SA_MAN 145 07/11/16 ST_MAN 124 05/10/10 ST_MAN 123 05/04/10 ST_MAN 121 04/07/18 ST_MAN 120 07/08/10 PU_CLERK 119 06/11/15 PU_CLERK 118 05/07/24 PU_CLERK 117 05/12/24 PU_CLERK 116 07/12/07 FI_ACCOUNT 113 06/03/07 FI_ACCOUNT 112 05/09/30 FI_ACCOUNT 111 05/09/28 FI_ACCOUNT 110 05/09/21 AD_VP 101 */ -- 15. EMPLOYEES 테이블에서 커미션을 받는 사원 중 SALARY * 커미션의 값이 4000 이상인 사원들의 모든 정보를 SALARY를 기준으로 내림차순 정렬하여 조회하세요. SELECT * FROM EMPLOYEES WHERE COMMISSION_PCT IS NOT NULL AND (SALARY * COMMISSION_PCT) >= 4000 ORDER BY SALARY DESC ; /* 145 John Russell JRUSSEL 011.44.1344.429268 04/10/01 SA_MAN 14000 0.4 100 80 146 Karen Partners KPARTNER 011.44.1344.467268 05/01/05 SA_MAN 13500 0.3 100 80 */ | cs |
'Develop > DB' 카테고리의 다른 글
(ORACLE) UPDATE (데이터수정) (0) | 2017.09.21 |
---|---|
(ORACLE) INSERT (데이터삽입) (0) | 2017.09.21 |
Oracledeveloper 새로운 계정 (BOARD) / 테이블 만들기 (0) | 2017.09.21 |
계층구조 SQL (0) | 2017.09.20 |
DB쿼리 실습 (2일차 실습문제) (0) | 2017.09.19 |