Question
Creation of sequences
Answer :
Word Count : 308
__________ _______ ____ ___ ___.
_________ __________ _________ ____ _________ ___ ________ ________ ______.
_____ _________ ______ ________ ____.
______ ______ _________ ____ _________.
___ ______ _______ _______ ______ ______ _________.
____ ______ __________ ___ ______ ____ _____ _______ _________ __________.
_____ ____ _______ ___ _____ ______ _______ ____ ______ _____.
_________ _____ __________ _______ ___ ________ ____ _____ _______.
_______ _________ ____ ______ ___ ____ ____ _______ ________.
__________ ____ _________ __________ ______ __________.
_____ _______ ___ _______ _______ ______ ___ ______.
_____ ___ __________ _____ ___ __________ ______ _________ _______.
__________ _______ ________ ________ ______ _________.
_______ ______ _______ _____ ________ ___ ____ ______ ______ ________.
___ ___ ______ ______ ______ ______.
_______ ___ _________ ____ _________ _______ _______ __________ ________ _____.
______ ________ ___ _______ __________ __________ _________ ________ ______ _________.
__________ _________ _____ _____ __________ _______.
___ ___ ____ ____ ___ ____ ________.
______ _______ ___ ________ ______ _________ _____ _________.
___ ____ _____ _______ _______ ___ ________ __________ _______.
______ _______ _____ __________ _____ ___ _____ _______ ______ ____ _______.
__________ _______ ____ _________ ___ _____ ______.
____ ______ ______.
Skip in 10
Sequences are database objects used to generate unique numeric values, typically used for primary key values or other unique identifiers. Here's an example of creating a sequence in a PostgreSQL database:
Let's assume you have a table named "Employees" and you want to create a sequence to generate unique employee IDs.
```sql
-- Create a sequence named employee_id_seq
CREATE SEQUENCE employee_id_seq
INCREMENT BY 1
START WITH 1001
NO MINVALUE
NO MAXVALUE
CACHE 1;
-- Create a table "Employees" that uses the sequence for generating IDs
CREATE TABLE Employees (
employee_id INT DEFAULT nextval('employee_id_seq') PRIMARY KEY,
first_name VARCHAR(50),
_________ __________ _________ ____ _________ ___ ________ ________ ______.
_____ _________ ______ ________ ____.
______ ______ _________ ____ _________.
___ ______ _______ _______ ______ ______ _________.
____ ______ __________ ___ ______ ____ _____ _______ _________ __________.
_____ ____ _______ ___ _____ ______ _______ ____ ______ _____.
_________ _____ __________ _______ ___ ________ ____ _____ _______.
_______ _________ ____ ______ ___ ____ ____ _______ ________.
__________ ____ _________ __________ ______ __________.
_____ _______ ___ _______ _______ ______ ___ ______.
_____ ___ __________ _____ ___ __________ ______ _________ _______.
__________ _______ ________ ________ ______ _________.
_______ ______ _______ _____ ________ ___ ____ ______ ______ ________.
___ ___ ______ ______ ______ ______.
_______ ___ _________ ____ _________ _______ _______ __________ ________ _____.
______ ________ ___ _______ __________ __________ _________ ________ ______ _________.
__________ _________ _____ _____ __________ _______.
___ ___ ____ ____ ___ ____ ________.
______ _______ ___ ________ ______ _________ _____ _________.
___ ____ _____ _______ _______ ___ ________ __________ _______.
______ _______ _____ __________ _____ ___ _____ _______ ______ ____ _______.
__________ _______ ____ _________ ___ _____ ______.
____ ______ ______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.