Using Run SQL Command Line
We described the full steps on below post β¬οΈ
AI Programming @freecodecs
Hope this will be helpful ππ½
We described the full steps on below post β¬οΈ
AI Programming @freecodecs
Hope this will be helpful ππ½
Steps Using Run SQL Command Line
ββββββββββββββββββ
Step 1: Open Run SQL Command Line
Step 2: Write and enter the following without quotations and semicolon
βconnect systemβ
Step 3: Enter your password which is you gave when you install Oracle Enterprise program and press enter(*you wonβt see it when you write itβs just blank)
Step 4: Alter the HR database account to access it every time - write and enter the following without the quotation and with the semicolon this time
βalter user hr account unlock;β
Step 5: Now create user and password for manipulation of HR account - also write enter the following without the quotation and with semicolon
βalter user hr identified by hr;β
Step 6: Write and enter βconnectβ then enter user name & pass, write and enter twice βhrβ for the username and password
β’NBβ’ Now you can use the Oracle SQL Program anytime but when you use it on next launch which is after exiting and starting again skip Step 4 & 5
AI Programming @freecodecs
As always :
Have a Lit π₯ Practice Folks ππ½
ββββββββββββββββββ
Step 1: Open Run SQL Command Line
Step 2: Write and enter the following without quotations and semicolon
βconnect systemβ
Step 3: Enter your password which is you gave when you install Oracle Enterprise program and press enter(*you wonβt see it when you write itβs just blank)
Step 4: Alter the HR database account to access it every time - write and enter the following without the quotation and with the semicolon this time
βalter user hr account unlock;β
Step 5: Now create user and password for manipulation of HR account - also write enter the following without the quotation and with semicolon
βalter user hr identified by hr;β
Step 6: Write and enter βconnectβ then enter user name & pass, write and enter twice βhrβ for the username and password
β’NBβ’ Now you can use the Oracle SQL Program anytime but when you use it on next launch which is after exiting and starting again skip Step 4 & 5
AI Programming @freecodecs
As always :
Have a Lit π₯ Practice Folks ππ½
AI Programming
ββββββββββββββββ | Database Exercise Questions | ββββββββββββββββ N.B. Consider the database shown above in Figure DB 1.1, whose schema is shown and do the practical exercises below. (We assume you have installed Oracleβs default HR(Human Resource)β¦
DB - Oracle Exercise 1 :Answers
ββββββββββββββββ
β’Ans Ex 1
SELECT * FROM JOBS WHERE JOB_TITLE LIKE β%A_%β;
β’Ans Ex 2
SELECT DISTINCT MIN_SALARY, MAX_SALARY FROM JOBS;
β’Ans Ex 3
SELECT DEPARTMENT_NAME FROM DEPARTMENTS WHERE LOCATION_ID = 1700;
β’Ans Ex 4
SELECT * FROM JOBS WHERE JOB_TITLE LIKE β%P%β ORDER BY MIN_SALARY;
(SELECT * FROM JOBS WHERE JOB_TITLE LIKE β%P%β ORDER BY ASC MIN_SALARY;)
β’Ans Ex 5
SELECT FIRST_NAME, LAST_NAME, EMAIL, SALARY FROM EMPLOYEES WHERE FIRST_NAME LIKE β%yβ ORDER BY EMAIL DESC;
β’Ans Ex 6
SELECT FIRST_NAME, LAST_NAME, SALARY FROM EMPLOYEES WHERE SALARY = 12008 OR SALARY = 3000;
β’Ans Ex 7
SELECT CITY, POSTAL_CODE FROM LOCATIONS WHERE CITY NOT LIKE β%eβ AND CITY NOT LIKE β%yβ AND CITY NOT LIKE β%aβ;
β’Ans Ex 8
SELECT EMPLOYEE_ID, FIRST_NAME, PHONE_NUMBER, EMAIL FROM EMPLOYEES WHERE HIRE_DATE > SYSDATE - 4000;
β’Ans Ex 9
SELECT MAX(SALARY) as βMax Salaryβ, MIN(SALARY) as βMin Salaryβ, AVG(SALARY) as βAverage Salaryβ FROM EMPLOYEES;
β’Ans Ex 10
SELECT FIRST_NAME, LAST_NAME, SALARY FROM EMPLOYEES WHERE HIRE_DATE = β07-JUN-02β AND (SALARY = 6500 OR SALARY = 8300);
AI Programming @freecodecs
ββββββββββββββββ
β’Ans Ex 1
SELECT * FROM JOBS WHERE JOB_TITLE LIKE β%A_%β;
β’Ans Ex 2
SELECT DISTINCT MIN_SALARY, MAX_SALARY FROM JOBS;
β’Ans Ex 3
SELECT DEPARTMENT_NAME FROM DEPARTMENTS WHERE LOCATION_ID = 1700;
β’Ans Ex 4
SELECT * FROM JOBS WHERE JOB_TITLE LIKE β%P%β ORDER BY MIN_SALARY;
(SELECT * FROM JOBS WHERE JOB_TITLE LIKE β%P%β ORDER BY ASC MIN_SALARY;)
β’Ans Ex 5
SELECT FIRST_NAME, LAST_NAME, EMAIL, SALARY FROM EMPLOYEES WHERE FIRST_NAME LIKE β%yβ ORDER BY EMAIL DESC;
β’Ans Ex 6
SELECT FIRST_NAME, LAST_NAME, SALARY FROM EMPLOYEES WHERE SALARY = 12008 OR SALARY = 3000;
β’Ans Ex 7
SELECT CITY, POSTAL_CODE FROM LOCATIONS WHERE CITY NOT LIKE β%eβ AND CITY NOT LIKE β%yβ AND CITY NOT LIKE β%aβ;
β’Ans Ex 8
SELECT EMPLOYEE_ID, FIRST_NAME, PHONE_NUMBER, EMAIL FROM EMPLOYEES WHERE HIRE_DATE > SYSDATE - 4000;
β’Ans Ex 9
SELECT MAX(SALARY) as βMax Salaryβ, MIN(SALARY) as βMin Salaryβ, AVG(SALARY) as βAverage Salaryβ FROM EMPLOYEES;
β’Ans Ex 10
SELECT FIRST_NAME, LAST_NAME, SALARY FROM EMPLOYEES WHERE HIRE_DATE = β07-JUN-02β AND (SALARY = 6500 OR SALARY = 8300);
AI Programming @freecodecs
Today we will discuss an amazing app called βοΈsource codeβοΈ
πover 1222 programs source code of different programming language like c,c#,c++,java,css,html,JavaScript ,php,python,xml,sql and many more programming language
π if u want to learn about programming this app will help u 100%
β³οΈwe uploaded the applications on our channel
βββββ’β’ββββββ’β’βββ
π£βΉshare &Join Us
ππΎππΎππΎ @freecodecs @freecodecs @freecodecs
ββ β’β’β’ β β’β’βββ’β’β’ββββ
πover 1222 programs source code of different programming language like c,c#,c++,java,css,html,JavaScript ,php,python,xml,sql and many more programming language
π if u want to learn about programming this app will help u 100%
β³οΈwe uploaded the applications on our channel
βββββ’β’ββββββ’β’βββ
π£βΉshare &Join Us
ππΎππΎππΎ @freecodecs @freecodecs @freecodecs
ββ β’β’β’ β β’β’βββ’β’β’ββββ
AI Programming via @like
π»Who wants full w3school offline version?π»
Offline version is a Web pages you can view without being connected to the Internet. W3school is the best website to learn programming like SQL html/css PHP Python ...... with Exercisesππππ
π@freecodecs
Offline version is a Web pages you can view without being connected to the Internet. W3school is the best website to learn programming like SQL html/css PHP Python ...... with Exercisesππππ
π@freecodecs
β€2
W3Schools Offline FullTutorial.apk
12.1 MB
W3school offline apk for Android phone
@Freecodecs
@Freecodecs
Quick Sorting Character in Alphabetical Order
AI Programming @freecodecs
As always:
Have a Lit π₯ Practice Folks ππ½
AI Programming @freecodecs
As always:
Have a Lit π₯ Practice Folks ππ½