GithubHelp home page GithubHelp logo

databasestar's People

Contributors

bbrumm avatar katekatze avatar miqueldespuig avatar sfaut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

databasestar's Issues

Data load error in movies database with Postgres

This error happens on file sample_databases/sample_db_movies/postgres/09_movie_genres.sql

DROP TABLE IF EXISTS movies.movie_genres;

CREATE TABLE movies.movie_genres (
  movie_id INT DEFAULT NULL,
  genre_id INT DEFAULT NULL,
  CONSTRAINT fk_mg_genre FOREIGN KEY (genre_id) REFERENCES movies.genre (genre_id),
  CONSTRAINT fk_mg_movie FOREIGN KEY (movie_id) REFERENCES movies.movie (movie_id)
);



INSERT INTO movie_genres VALUES
(5,35),
(5,80),
(11,12),
...

The INSERT INTO instruction won't execute because the table name is wrong, as it is not on the public schema. This line should fix this

INSERT INTO movies.movie_genres VALUES

Oracle scripts not working properly

Escaping of apostrophes on oracle scripts are done wrong (you are using \' instead of '') see reference :
https://stackoverflow.com/questions/5139770/escape-character-in-sql-server

You can resolve this by using the following python script:


import os
directory = 'oracle'


def function(f):
    with open(f, 'r') as file:
        data = file.read()
    

        data = data.replace("\\'","''" )
        data = data.replace("\\\"", "\"\"")
    

    with open(f, 'w') as file:
    

        file.write(data)

for filename in os.listdir(directory):
    f = os.path.join(directory, filename)
    if os.path.isfile(f):
        function(f)

Error in movie.sql script in MYSQL

Date format is 0000-00-00

movie_id : 380097

(380097,'America Is Still the Place',0,'','1971 post civil rights San Francisco seemed like the perfect place for a black Korean War veteran and his family to realize their dream of economic independence and his own chance to be his a "boss". Charlie Walker would soon find out how naive he was. In a city full of impostors and naysayers, he refused to take "No" for an answer. Until a catastrophic disaster opened a door that had never been open to a black man before. This is a story about what happened when he stepped through that door, with both feet!.',0.000000,'0000-00-00',0,0,'Released','',0.00,0),

License

Hello
Under what license are released your database scripts? I was looking for some sample data to teach SQL couple people inside my company, but I wouldn't like to use anyone intellectual property without consent.
I stumbled upon your website and superhero seems cool ;-)

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.