Git Product home page Git Product logo

assignment's Introduction

Movie Database Query Tool

This project is a Python-based tool for querying and analyzing a movie database stored in a PostgreSQL database. The tool allows users to perform various queries and retrieve information about movies, raters, and ratings.

Prerequisites

Before running the project, ensure you have the following installed:

  • Python 3.x
  • PostgreSQL

Setup

  1. Clone the repository:

  2. Navigate to the project directory:

    cd Assignment
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Set up the PostgreSQL database:

    • Create a database and update the connection string in database.py with your database credentials.
  5. Run the main script to create the table and upload the data:

    python main.py

    Queries.py is using the function defined in Operations.py.

    python Queries.py

Usage

  1. Upon running Query.py, you will see an options menu with various query functionalities.

  2. Choose an option by entering the corresponding letter:

    • a: Top 5 Movie Titles
    • b: Number of Unique Raters
    • c: Top 5 Rater IDs
    • d: Top Rated Movies
    • e: Favorite Movie Genre of Rater ID 1040
    • f: Highest Average Rating for a Movie Genre by Rater ID 1040
    • g: Year with Second-Highest Number of Action Movies
    • h: Count of Movies with High Ratings
    • x: Exit
  3. Follow the on-screen instructions to interact with the tool.

assignment's People

Contributors

rahulkiller104 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.