{"id":19839763,"url":"https://github.com/praveen-334/sql-queries","last_synced_at":"2026-02-07T23:04:41.592Z","repository":{"id":252494908,"uuid":"840611585","full_name":"praveen-334/SQL-Queries","owner":"praveen-334","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-10T06:50:29.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T05:23:05.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/praveen-334.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-08-10T06:39:12.000Z","updated_at":"2024-08-10T06:50:32.000Z","dependencies_parsed_at":"2024-08-10T08:23:35.021Z","dependency_job_id":null,"html_url":"https://github.com/praveen-334/SQL-Queries","commit_stats":null,"previous_names":["praveen-334/sql-queries"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/praveen-334/SQL-Queries","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praveen-334%2FSQL-Queries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praveen-334%2FSQL-Queries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praveen-334%2FSQL-Queries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praveen-334%2FSQL-Queries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/praveen-334","download_url":"https://codeload.github.com/praveen-334/SQL-Queries/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praveen-334%2FSQL-Queries/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29211641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T22:58:45.823Z","status":"ssl_error","status_checked_at":"2026-02-07T22:58:45.272Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-12T12:24:12.852Z","updated_at":"2026-02-07T23:04:41.556Z","avatar_url":"https://github.com/praveen-334.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQL-Queries\n\n## Scenario:\n### Perform SQL queries to create tables and extract meaningful information from a Student and Course database.\n\n## CODE:\n```sql\nCREATE TABLE Student (\nRollNo INT PRIMARY KEY,\nName VARCHAR(100) NOT NULL,\nMarks DECIMAL(5, 2) NOT NULL,\nAadharNumber CHAR(12) UNIQUE NOT NULL,\nAddress VARCHAR(255)\n);\nCREATE TABLE Course (\nRollNo INT,\nCourse VARCHAR(100) NOT NULL,\nCourse_Duration VARCHAR(50),\nFOREIGN KEY (RollNo) REFERENCES Student(RollNo)\n);\nINSERT INTO Student (RollNo, Name, Marks, AadharNumber, Address)\nVALUES\n(1, 'John Doe', 85.5, '123456789012', '123 Elm Street'),\n(2, 'Rane Smith', 25.0, '987654321098', '456 Oak Avenue'),\n(3, 'Alice Johnson', 78.0, '111223344556', '789 Pine Road');\nINSERT INTO Course (RollNo, Course, Course_Duration)\nVALUES\n(1, 'BCA', '6 months'),\n(1, 'MBA', '6 months'),\n(2, 'BBA', '6 months'),\n(3, 'BCA', '6 months');\n\nSELECT AVG(Marks) AS AverageMarks\n\nFROM Student;\nSELECT Name\nFROM Student\nORDER BY Name ASC;\nSELECT RollNo, Name\n\nFROM Student\nWHERE Marks \u003c 30;\nSELECT RollNo\nFROM Student\nWHERE Name LIKE 'R%';\nSELECT DISTINCT RollNo\nFROM Course\nWHERE Course = 'BCA';\n\nOutput:\n\nAverageMarks                            \n----------------------------------------\n                               62.833333\nName                                                                                                \n----------------------------------------------------------------------------------------------------\nAlice Johnson                                                                                       \nJohn Doe                                                                                            \nRane Smith                                                                                          \nRollNo      Name                                                                                                \n----------- ----------------------------------------------------------------------------------------------------\n          2 Rane Smith                                                                                          \nRollNo     \n-----------\n          2\nRollNo     \n-----------\n          1\n          3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraveen-334%2Fsql-queries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpraveen-334%2Fsql-queries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraveen-334%2Fsql-queries/lists"}