1
asked in 2 exams2 परीक्षाओं में पूछा गया
AEDPM (L-08) IT Department — RCF/Kapurthala, 2026 · AEDPM (L-08) IT Department — RCF/Kapurthala, 2022QUERYING WITH SELECTसेलेक्ट से क्वेरी
SQL, STRUCTURED QUERY LANGUAGE, is how you talk to a relational database. It queries, updates and changes its structure and security.
- SELECT retrieves data: SELECT * FROM table
- WHERE filters the rows, with = > < and != or <>
- ORDER BY arranges the rows in ascending or descending order
- GROUP functions: COUNT, SUM, MAX, MIN, AVG; COUNT() returns the number of records
- LIKE matches text: % for any characters, _ for one character
- सेलेक्ट डेटा निकालता है: SELECT * FROM table
- व्हेयर पंक्तियाँ छाँटता है, = > < और != या <> से
- ऑर्डर बाय पंक्तियों को आरोही या अवरोही क्रम में रखता है
- ग्रुप फंक्शन: काउंट, सम, मैक्स, मिन, एवीजी; काउंट() रिकॉर्डों की संख्या देता है
- लाइक पाठ मिलाता है: किसी भी अक्षरों के लिए %, एक अक्षर के लिए _
2
asked in 1 exam1 परीक्षा में पूछा गया
AEDPM (L-08) IT Department — RCF/Kapurthala, 2026VIEWS AND SET OPERATORSव्यू और सेट ऑपरेटर
- A VIEW is a VIRTUAL TABLE built from one or more tables. It holds no data of its own
- SET OPERATORS combine two query results: UNION, INTERSECT, MINUS
- SPECIAL OPERATORS test a sub-query: EXISTS, SOME, ANY, ALL
- CONSTRAINTS reject invalid rows: PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK, NOT NULL, DEFAULT
- व्यू एक या अधिक तालिकाओं से बनी वर्चुअल तालिका है। इसका अपना कोई डेटा नहीं होता
- सेट ऑपरेटर दो क्वेरी परिणाम जोड़ते हैं: यूनियन, इंटरसेक्ट, माइनस
- विशेष ऑपरेटर उप-क्वेरी जाँचते हैं: एग्जिस्ट्स, सम, एनी, ऑल
- कंस्ट्रेंट अमान्य पंक्तियाँ अस्वीकार करते हैं: प्राइमरी की, फॉरेन की, यूनिक, चेक, नॉट नल, डिफॉल्ट
3
asked in 1 exam1 परीक्षा में पूछा गया
AEDPM (L-08) IT Department — RCF/Kapurthala, 2022SQL FUNCTIONSएसक्यूएल फंक्शन
NUMBERS AND TEXTसंख्या और पाठ
Oracle gives you ready-made functions. The papers ask what a few of them return, so learn each with its example.
- ABS returns the absolute value: ABS(-25) = 25
- CEIL returns the smallest integer greater than or equal to its argument; FLOOR returns the largest integer equal to or less than it
- MOD returns the remainder when the first number is divided by the second
- || joins two strings, and the CONCAT function does the same
- LPAD and RPAD both take the string, the length to pad it to, and an optional pad character: LPAD('Tech',7,'*') gives ***Tech, RPAD gives Tech***
- एब्स निरपेक्ष मान देता है: ABS(-25) = 25
- सील अपने तर्क के बराबर या उससे बड़ा सबसे छोटा पूर्णांक देता है; फ्लोर उसके बराबर या उससे छोटा सबसे बड़ा पूर्णांक देता है
- मॉड पहली संख्या को दूसरी से भाग देने पर शेषफल देता है
- || दो स्ट्रिंग जोड़ता है, और कॉनकैट फंक्शन भी यही करता है
- एलपैड और आरपैड दोनों स्ट्रिंग, भरने के बाद की लंबाई और एक वैकल्पिक भराव अक्षर लेते हैं: LPAD('Tech',7,'*') से ***Tech मिलता है, RPAD से Tech***
4
CONSTRAINTS AND CASCADESकंस्ट्रेंट और कैस्केड
A constraint is a rule a column must obey. The database refuses any row that breaks it.
- NOT NULL: the column must always hold a value
- UNIQUE: no two rows may share a value in the column
- PRIMARY KEY: unique and not null at once, and a table has only one
- FOREIGN KEY: points to the primary key of another table, and blocks changes that would break that link
- DEFAULT gives a column its value when you supply none; CHECK limits the values a column may hold
- ON DELETE CASCADE: deleting a parent row deletes the child rows that point to it
- ON UPDATE CASCADE carries an update from the parent to those child rows in the same way
- नॉट नल: कॉलम में हमेशा कोई मान होना चाहिए
- यूनीक: कॉलम में कोई दो पंक्तियाँ एक ही मान नहीं रख सकतीं
- प्राइमरी की: एक साथ यूनीक और नॉट नल, और एक टेबल में केवल एक
- फॉरेन की: दूसरी टेबल की प्राइमरी की की ओर संकेत करती है, और वह कड़ी तोड़ने वाले बदलाव रोकती है
- डिफॉल्ट मान न देने पर कॉलम को उसका मान देता है; चेक उन मानों को सीमित करता है जो कॉलम रख सकता है
- ऑन डिलीट कैस्केड: पैरेंट पंक्ति हटाने पर उसकी ओर संकेत करने वाली चाइल्ड पंक्तियाँ भी हट जाती हैं
- ऑन अपडेट कैस्केड इसी तरह पैरेंट का अपडेट उन चाइल्ड पंक्तियों तक ले जाता है
5
DELETE, TRUNCATE OR DROPडिलीट, ट्रंकेट या ड्रॉप
Three commands remove data, and you must know which one leaves what behind.
- DELETE removes the rows a WHERE condition picks and leaves the table; it is DML
- TRUNCATE removes every row but keeps the empty table; it is DDL
- DROP removes the table itself, with its data and its structure; it is DDL too
- डिलीट व्हेयर शर्त से चुनी गई पंक्तियाँ हटाता है और टेबल छोड़ देता है; यह डीएमएल है
- ट्रंकेट हर पंक्ति हटाता है पर खाली टेबल रखता है; यह डीडीएल है
- ड्रॉप टेबल को ही, उसके डेटा और संरचना समेत, हटा देता है; यह भी डीडीएल है