Coder Social home page Coder Social logo

eslamashhraf / pl-sql-challenges Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 40 KB

✅ The solutions of PL/SQL challenges on w3resources executed on Oracle environment compiled with helpful Resources & references related to the challenges.

Home Page: https://w3resource.com/plsql-exercises/

License: MIT License

challenge control-statement cursor data-type database fundamentals package pl-sql solution sql w3resource

pl-sql-challenges's Introduction

🖥️ PL/SQL Challenges


📝 Table of Contents


📙 Overview

The solutions of PL/SQL challenges for on w3resources executed on Oracle environment compiled with helpful Resources & references related to the challenges.


✅ Challenges

Fundamentals

Number Challenges Solutions
1 Write a PL/SQL block to calculate the incentive of an employee whose ID is 110. Link SQL
2 Write a PL/SQL block to show an invalid case-insensitive reference to a quoted and without quoted user-defined identifier. Link SQL
3 Write a PL/SQL block to show a reserved word can be used as a user-define identifier. Link SQL
4 Write a PL/SQL block to show the result to neglect double quotation marks in reserved word identifier. Link SQL
5 Write a PL/SQL block to show the result to neglect double quotation marks in reserved word identifier. Link SQL
6 Write a PL/SQL block to show single and multiline comments. Link SQL
7 Write PL/SQL blocks to show the declaration of variables. Link SQL
8 Write PL/SQL blocks to show the scope and visibility of local and global identifiers. Link SQL

DataType

Number Challenges Solutions
1 Write a PL/SQL block to learn how to declare a character type variable. Link SQL
2 Write a PL/SQL block to insert data to a table using character type variable. Link SQL
3 Write a PL/SQL block to differenciate between CHAR and VARCHAR2 datatype. Link SQL
4 Write a PL/SQL procedure to accepts a BOOLEAN parameter and uses a CASE statement to print Unknown if the value of the parameter is NULL, Yes if it is TRUE, and No if it is FALSE. Link SQL
5 Write a PL/SQL program to show the upper limit of PLS_INTEGER. Link SQL
6 Write a PL/SQL program to show the uses of SIMPLE_INTEGER datatype. Link SQL
7 Write a PL/SQL program to show the uses of an unconstrained subtype, i.e., the same set of values as its base type. Link SQL
8 Write a PL/SQL program to show the uses of a constrained subtype. Link SQL

Control Statement

Number Challenges Solutions
1 Write a PL/SQL program to arrange the number of two variable in such a way that the small number will store in num_small variable and large number will store in num_large variable. Link SQL
2 Write a Function to Check/Return whether an input number is even or odd, and execute it.Link SQL
3 Write a PL/SQL program to check whether a date falls on weekend i.e. SATURDAY or SUNDAY. Link SQL
4 Write a PL/SQL program to count number of employees in a specific department and check whether this department have any vacancies or not. If any vacancies, how many vacancies are in that department. Link SQL
5 Write a PL/SQL program to display the description against a grade using CASE statement. Link SQL
6 Write a PL/SQL program to display the description against a grade using CASE statement with EXCEPTION. Link SQL

Cursor

Number Challenges Solutions
1 Write a program in PL/SQL to display a table based detail information for the employee of ID 149 from the employees table. Link SQL

Package

Number Challenges Solutions
1 Create a Package to includeFunction to Check/Return whether an input number is even or odd and Stored a Stored Procedure to check whether an input date falls on weekend i.e. SATURDAY or SUNDAY SQL

👑 Contributors



Eslam Ashraf


🔒 License

Note: This software is licensed under MIT License, See License for more information ©EslamAsHhraf.

pl-sql-challenges's People

Contributors

eslamashhraf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.