{"id":17965842,"url":"https://github.com/rahad-ullah/sql-assignment","last_synced_at":"2025-06-25T02:33:47.939Z","repository":{"id":259477908,"uuid":"877976702","full_name":"Rahad-Ullah/SQL-Assignment","owner":"Rahad-Ullah","description":"Assignment - 7 (Level - 2)","archived":false,"fork":false,"pushed_at":"2024-10-24T17:32:23.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T20:23:48.550Z","etag":null,"topics":["postgresql","sql"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rahad-Ullah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-24T15:05:10.000Z","updated_at":"2024-10-24T17:36:15.000Z","dependencies_parsed_at":"2024-10-25T21:36:00.638Z","dependency_job_id":"a61e72fd-e79a-4656-898e-355168b68b9d","html_url":"https://github.com/Rahad-Ullah/SQL-Assignment","commit_stats":null,"previous_names":["rahad-ullah/sql-assignment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rahad-Ullah/SQL-Assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahad-Ullah%2FSQL-Assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahad-Ullah%2FSQL-Assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahad-Ullah%2FSQL-Assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahad-Ullah%2FSQL-Assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rahad-Ullah","download_url":"https://codeload.github.com/Rahad-Ullah/SQL-Assignment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahad-Ullah%2FSQL-Assignment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261791172,"owners_count":23210105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["postgresql","sql"],"created_at":"2024-10-29T13:05:40.949Z","updated_at":"2025-06-25T02:33:47.904Z","avatar_url":"https://github.com/Rahad-Ullah.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Answer of 10 Questions\n\n### 1. What is PostgreSQL?\n\nPostgreSQL is an open-source, powerful relational database management system (RDBMS) known for its advanced features and compliance with SQL standards.\n\n### 2. What is the purpose of a database schema in PostgreSQL?\n\nDatabase schema is a logical grouping of database objects (tables, views, etc.) in PostgreSQL that organizes and separates data, making it easier to manage and secure.\n\n### 3. Explain the primary key and foreign key concepts in PostgreSQL.\n\n**Primary Key:** A unique identifier for a row in a table.\n**Foreign Key:** A reference to a primary key in another table, ensuring referential integrity between tables.\n\n### 4. What is the difference between the VARCHAR and CHAR data types?\n\nThe difference between the VARCHAR and CHAR data types is: VARCHAR stores variable-length strings, saving space for shorter strings and CHAR stores fixed-length strings, padding shorter ones with spaces.\n\n### 5. Explain the purpose of the WHERE clause in a SELECT statement.\n\nWHERE clause filters rows in a SELECT query based on specified conditions.\n\n### 6. What are the LIMIT and OFFSET clauses used for?\n\nLIMIT restricts the number of rows returned, and OFFSET skips a specified number of rows, useful for pagination.\n\n### 7. How can you perform data modification using UPDATE statements?\n\nUPDATE statement modifies existing data in a table by setting new values for specified columns, optionally filtered with a WHERE clause.\n\n### 8. What is the significance of the JOIN operation, and how does it work in PostgreSQL?\n\nJOIN operation combines rows from multiple tables based on related columns, enabling complex queries across tables in PostgreSQL.\n\n### 9. Explain the GROUP BY clause and its role in aggregation operations.\n\nGROUP BY groups rows with the same values in specified columns, enabling aggregation functions (COUNT, SUM etc.) over each group.\n\n### 10. What is the purpose of an index in PostgreSQL, and how does it optimize query performance?\n\nIndex is a data structure that improves query performance by allowing faster data retrieval, often on columns used in filtering or sorting.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahad-ullah%2Fsql-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahad-ullah%2Fsql-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahad-ullah%2Fsql-assignment/lists"}