sql
stringlengths
6
1.05M
Create table If Not Exists Drivers (driver_id int, join_date date); Create table If Not Exists Rides (ride_id int, user_id int, requested_at date); Create table If Not Exists AcceptedRides (ride_id int, driver_id int, ride_distance int, ride_duration int); Truncate table Drivers; insert into Drivers (driver_id, join_da...
/* Formatted on 12-15-2018 10:12:00 AM (QP5 v5.126.903.23003) */ DROP TABLE PRS.PRSN_EXTRA_DATA_COLS CASCADE CONSTRAINTS PURGE; CREATE TABLE PRS.PRSN_EXTRA_DATA_COLS ( EXTRA_DATA_COLS_ID NUMBER NOT NULL, COLUMN_NO NUMBER, COLUMN_LABEL VARCHAR2 (300 BYTE), ATTCHD_LOV_NAME ...
<reponame>Shuttl-Tech/antlr_psql -- file:rangetypes.sql ln:220 expect:true select count(*) from test_range_gist where ir = int4range(10,20)
-- 2012-03-22 thorick: -- create separate drop ddl to keep drop out of the create script -- run only 'create' by mistake and nothing bad will happen -- not so with DROP ! -- -- Users must set the db name before running this script -- --USE [enter_db_name_here] --GO IF...
<reponame>stasKama/dbMusic<filename>Music/Music/Song.sql<gh_stars>0 CREATE TABLE [dbo].[Song] ( [Id] INT NOT NULL IDENTiTY(1,1) PRIMARY KEY, [Name] varchar(30) NOT NULL, [ArtistId] INT NOT NULL, [Length] NUMERIC(5,2) NOT NULL, [Genre] VARCHAR(30) NOT NULL CHECK([Genre] IN ('Alternative Music', ...
drop database if exists douban; create database douban default charset utf8; use douban; drop table if exists movie; create table movie ( `douban_id` varchar(16) not null, `title` varchar(1024), `directors` text, `scriptwriters` text, `actors` text, `types` text, `release_region` text, `release_date` text, `alias` t...
<reponame>ce434d1e/www.wenda.com /* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50726 Source Host : localhost:3306 Source Database : www_wenda_com Target Server Type : MYSQL Target Server Version : 50726 File Encoding : 65001 Date: 2021-08-12 ...
<gh_stars>0 -- host INSERT INTO mapper.host (id, host_name, preferred) VALUES (1, 'localhost:8080', true); INSERT INTO mapper.host (id, host_name, preferred) VALUES (2, 'randomhost.com', false); -- match uris INSERT INTO mapper.match (id, uri, deprecated, updated_at, updated_by) VALUES (3, 'name/apni/54433', false, '20...
<reponame>pribtech/nodete INSERT into ?SCHEMA?.employee_wages(empno, salary) values (1,-10000);
<filename>Training/20762/Allfiles/Labfiles/Lab07/Solution/Create memory optimized table.sql /************************************************************************ * Step 14 * * * * Create a memory optimized table and import the data * * * *******************...
CREATE TABLE GSPANOTHER.INDEX_TEST1 ( INDEX_TEST1_ID BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY, SUB_ID_1 BIGINT NOT NULL, SUB_ID_2 BIGINT NOT NULL ); COMMENT ON table GSPANOTHER.INDEX_TEST1 is 'INDEX_TEST1'; COMMENT ON column GSPANOTHER.INDEX_TEST1.INDEX_TEST1_ID is 'INDEX_TEST1_ID'; COMMENT ON column GSPANOTH...
-- @author balasr3 -- @description TPC-H query14 -- @created 2012-07-26 22:04:56 -- @modified 2012-07-26 22:04:56 -- @tags orca BEGIN; INSERT INTO region (r_name, r_comment) values ('QUERY EXECUTION', 'SAVEPOINT_NAME'); SAVEPOINT sp_SAVEPOINT_NAME; INSERT INTO region (r_name, r_comment) values ('QUERY EXECUTION', 'inn...
/* Copyright 2001, 2019 IBM Corporation * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the * following d...
<filename>docs/init.sql drop table blog_article; CREATE TABLE blog_article ( id int NOT NULL, article_head_pic varchar(255) DEFAULT NULL, article_name varchar(255) DEFAULT NULL, article_tag varchar(255) DEFAULT NULL, article_remark varchar(255) DEFAULT NULL, ar...
CREATE TABLE issue_events ( event_id BIGINT UNSIGNED PRIMARY KEY, user_name VARCHAR(255) NOT NULL, repository_id BIGINT UNSIGNED NOT NULL, issue_number INT UNSIGNED NOT NULL, action ENUM ('opened','edited','deleted','transferred','closed','reopened','assigned','unassigned','labeled','unlabeled','milestoned','...
<gh_stars>0 DELETE FROM DIR_GAME WHERE PUB_ID = ?;
<gh_stars>0 --create function nvl(text, text) returns text as '$libdir/nvl' language C immutable; create function sdecode(VARIADIC args text[]) returns text as '$libdir/decode' language C immutable strict; create function isluhn(num text) returns int as '$libdir/luhn' language C immutable strict; create function luhnv...
<filename>Database/Homeworks/07. Intro to SQL/Task - 24.sql<gh_stars>0 USE TelerikAcademy SELECT e.FirstName + ' ' + e.LastName AS FullName, d.Name AS DepartmentName, e.HireDate FROM Employees e INNER JOIN Departments d ON e.DepartmentID = d.DepartmentID WHERE (d.Name = 'Sales' OR d.Name = 'Finance') AND (e.H...
USE company_db; INSERT INTO employee (first_name, last_name, role_id) VALUES ('John', 'Smith', '7'); INSERT INTO employee (first_name, last_name, role_id) VALUES ('Alice', 'Walker', '7'); INSERT INTO employee (first_name, last_name, role_id) VALUES ('Harry', 'Potter', '6'); INSERT INTO employee (first_name, last_name,...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 05, 2021 at 08:00 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<gh_stars>0 SELECT DISTINCT replacement_cost FROM film; SELECT COUNT(DISTINCT replacement_cost) FROM film; SELECT COUNT(*) FROM film WHERE title LIKE 'T%' AND rating = 'G'; SELECT COUNT(*) FROM country WHERE country LIKE '_____' SELECT COUNT(*) FROM city WHERE city ILIKE '%R'
-- upgrade -- CREATE TABLE IF NOT EXISTS "questions" ( "id" SERIAL NOT NULL PRIMARY KEY, "catalog" VARCHAR(225) NOT NULL, "question" TEXT NOT NULL, "created_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, "modified_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, "author_id" INT NOT NUL...
--SQL Exercises, Practice, Solution - Retrieve data from tables -- https://www.w3resource.com/sql-exercises/sql-retrieve-from-table.php -- 1. Write a SQL statement to display all the information of all salesmen. select * from salesman s; --2. Write a SQL statement to display a string "This is SQL Exercise, Practic...
<reponame>LeoDantasSS/Database-Administrator-MySQL<filename>Exercicios/Exercicio 24/db-cadastro exercicio 24.sql CREATE DATABASE db_cadastro; USE db_cadastro; CREATE TABLE tb_pessoa ( id_pessoa INT(3) AUTO_INCREMENT, nome VARCHAR(32) NOT NULL, sobrenome VARCHAR(100) NOT NULL, cpf VARCHAR(14) NOT NULL, ...
<filename>backend/src/test/resources/create_script.sql -- v4.03 (28/04/2016) -------------------------- --------- TABLES --------- -------------------------- DROP TABLE IF EXISTS account CASCADE; DROP SEQUENCE IF EXISTS accountid_seq; CREATE SEQUENCE accountid_seq; CREATE TABLE account ( accountid integer PRIMAR...
<filename>Dump.sql CREATE DATABASE IF NOT EXISTS `test-transactions` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `test-transactions`; -- MySQL dump 10.13 Distrib 8.0.21, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: test-transactions -- --------...
<reponame>sbenten/osm_routing_import CREATE FUNCTION setnaptantype() RETURNS void LANGUAGE plpgsql AS $$ /* Convert the three digit codes in the stoptype column to a simple human-readable type http://naptan.dft.gov.uk/naptan/stopTypes.htm PARAMS n/a RETURNS void */ BEGIN UPDATE naptan SET type = CASE WHEN...
<gh_stars>0 DELETE FROM "permission_role"; INSERT INTO "permission_role" ("permission_id", "role_id") VALUES (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1), (8, 1), (9, 1), (10, 1), (11, 1), (12, 1), (13, 1), (14, 1), (15, 1), (16, 1), (17, 1), (18, 1), (19, 1), (20, 1), (21, 1), (22, 1), (23, 1), (24, 1), (25...
INSERT IGNORE INTO detailCount (date, province_name, current_confirmed_count, confirmed_count, dead_count, cured_count) VALUES ('2022-05-24', '台湾', 1453799, 1469019, 1478, 13742), ('2022-05-24', '香港', 260735, 332030, 9370, 61925), ('2022-05-24', '上海市', 1834, 62774, 593, 60347), ('2022-05-24', '北京市', 592, 3209, 9, 2608)...
noaudit policy ora_logon_failures; noaudit policy ora_secureconfig; noaudit policy ora_database_parameter; noaudit policy ora_account_mgmt; DECLARE lv_count number := 0; BEGIN SELECT COUNT(*) INTO lv_count FROM audit_unified_policies WHERE policy_name = 'AUDIT_DBDBA_ROLE_POLICY'; IF lv_count > 0 THEN ...
COMMENT ON TABLE fact_loader.debug_process_queue IS 'A mirror of process_queue for debugging only (unlogged) - only populated with log_min_duration set to DEBUG.';
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <NAME> -- Create date: 19/03/2014 -- Description: SQL Section 8 - Examples -- ============================================= CREATE PROCEDURE usp_S8E01 -- Add the parameters for the stored procedure here AS ...
<reponame>freddie2025/WeeklyChallange<gh_stars>10-100 CREATE TABLE [dbo].[Purchase] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [ItemName] VARCHAR(50) NOT NULL, [Price] MONEY NOT NULL, [PurchaseForId] INT NOT NULL )
<filename>src/test/resources/sql/insert/5e09c131.sql -- file:insert_conflict.sql ln:114 expect:true insert into insertconflicttest values (6, 'Passionfruit') on conflict (lower(fruit)) do update set fruit = excluded.fruit
-- file:create_misc.sql ln:132 expect:true INSERT INTO e_star (class, c, e) VALUES ('e', 'hi michelle'::name, '-3'::int2)
<reponame>Shuttl-Tech/antlr_psql -- file:bit.sql ln:41 expect:true SELECT v, length(v) AS lv FROM VARBIT_TABLE
<reponame>vladkorsik/vocab_covid /************************************************************************** * Copyright 2016 Observational Health Data Sciences AND Informatics (OHDSI) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may NOT use this file except IN compliance with the License. ...
<reponame>fabier/pixnista-grails<filename>scripts/sql/init/VoteReason.init.sql /* UPDATE "user" SET vote_reason_id = null; */ DELETE FROM vote_reason; ALTER SEQUENCE "public".seq_vote_reason RESTART; INSERT INTO vote_reason (id, "name", description, version, creator_id, date_created, last_updated) VALUES (nextval('s...
##################################################################### # données complètes par email. ##################################################################### select distinct email from cetcal_producteur; select * from cetcal_producteur where email='<EMAIL>'; select * from cetcal_specificite_produits wher...
<filename>backup/book.sql -- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: book_list -- ------------------------------------------------------ -- Server version 8.0.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESU...
ALTER TABLE {$NAMESPACE}_repository.repository_symbol DROP COLUMN arcanistProjectID;
<reponame>FuriousLlama/PSP<gh_stars>1-10 /* ----------------------------------------------------------------------------- Delete all data from the PIMS_LEASE_STATUS_TYPE table and repopulate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Author Date Comment ------------...
<reponame>FANsZL/hive ALTER TABLE DBS ADD OWNER_NAME VARCHAR2(128); ALTER TABLE DBS ADD OWNER_TYPE VARCHAR2(10);
<gh_stars>10-100 def Main = Choose { hello = "Hello"; world = "World"; }
--Add a query specification to a virtual class with collection type create vclass v_t1(c1 set int, c2 set varchar(10)); create class t1(c1 int, c2 set int, c3 set varchar(10)); insert into t1 values(101, {111,222}, {'xxx','yyy','xxx'}); insert into ...
-- phpMyAdmin SQL Dump -- version 5.1.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Mar 13, 2022 at 12:24 PM -- Server version: 5.7.33 -- PHP Version: 7.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
-- phpMyAdmin SQL Dump -- version 4.6.6deb4 -- https://www.phpmyadmin.net/ -- -- Počítač: localhost:3306 -- Vytvořeno: Sob 27. led 2018, 20:26 -- Verze serveru: 10.1.26-MariaDB-0+deb9u1 -- Verze PHP: 7.0.27-0+deb9u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
-- MySQL dump 10.13 Distrib 5.6.35, for osx10.9 (x86_64) -- -- Host: localhost Database: Quickadclassified -- ------------------------------------------------------ -- Server version 5.6.35 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RES...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 03-02-2020 a las 03:42:43 -- Versión del servidor: 10.3.10-MariaDB-log -- Versión de PHP: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:...
USE SoftUni SELECT DISTINCT Salary FROM Employees
<reponame>Oluwafayokemi/sms-management -- Revert sms-management:user_add_constraint_to_user_name from pg BEGIN; -- XXX Add DDLs here. COMMIT;
SET ANSI_NULLS ON; SET ANSI_PADDING ON; SET ANSI_WARNINGS ON; SET ANSI_NULL_DFLT_ON ON; SET CONCAT_NULL_YIELDS_NULL ON; SET QUOTED_IDENTIFIER ON; go CREATE VIEW pbist_edfi.vw_AcademicSubjectDescriptor AS SELECT AcademicSubjectDescriptorId, AcademicSubjectTypeId FRO...
<gh_stars>1-10 /* -- Query: SELECT * FROM hciproject.post LIMIT 0, 1000 -- Date: 2019-02-06 13:39 */ INSERT INTO `post` (`id`,`date_post`,`image`,`text`,`user`,`username`) VALUES (34,'2018-11-25 09:53:40','/up-avatar/download.jpg','lkjhgcfgvhbjnkl;kj','<EMAIL>','<EMAIL>'); INSERT INTO `post` (`id`,`date_post`,`image`,...
<filename>schema.sql -- Drops the recipeEZ_DB if it exists already DROP DATABASE IF EXISTS recipeEZ_db; -- Creates the recipeEZ database CREATE DATABASE recipeEZ_db;
-- -- A wrapper around dbms_workload_repository.awr_report_text() -- which supports dates -- CREATE OR REPLACE FUNCTION SYS.AWR_REPORT_TEXT_DATE_INTERVAL( l_dbid IN NUMBER, l_inst_num IN NUMBER, l_b_date IN TIMESTAMP, l_e_date IN TIMESTAMP, l_options IN NUMBER D...
CREATE DATABASE IF NOT EXISTS `web_payment_tracker`; USE `web_payment_tracker`; -- MySQL dump 10.13 Distrib 5.6.13, for osx10.6 (i386) -- -- Host: 127.0.0.1 Database: web_customer_tracker -- ------------------------------------------------------ -- Server version 5.6.16 /*!40101 SET @OLD_CHARACTER_SET_C...
-- Verify seattleflu/schema:warehouse/sample/timestamp on pg begin; rollback;
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 23, 2021 at 09:10 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.3.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
CREATE OR REPLACE FUNCTION GetZoneMetadata( zonename varchar, out metadata_key varchar, out metadata_value varchar ) RETURNS SETOF record AS $$ DECLARE r RECORD; zone_check INT; BEGIN SELECT id INTO zone_check FROM zone WHERE zone.name = zonename; IF NOT FOUND THEN RAISE EXCEPTION '...
<filename>src/test/resources/jp/co/tis/gsp/tools/dba/mojo/GenerateDdlMojo_test/auto_increment/oracle/expected/ddl/10_CREATE_N_AUTO4.sql CREATE TABLE N_AUTO4 ( N_AUTO4_ID NUMBER(18) NOT NULL , TEST_NAME VARCHAR2(30 CHAR) ); COMMENT ON table N_AUTO4 is 'NOT自動採番4'; COMMENT ON column N_AUTO4.N_AUTO4_ID is 'N_AUTO4_ID';...
\set ON_ERROR_STOP 1 BEGIN; DO $$ DECLARE r record; BEGIN FOR r IN ( SELECT * FROM information_schema.triggers WHERE action_statement LIKE '%b_upd_last_updated_table%' ) LOOP EXECUTE 'ALTER TABLE ' || quote_ident(r.event_object_schema) || '.' || quot...
<gh_stars>0 -- @testpoint: 插入bool类型,合理报错 drop table if exists float10; create table float10 (name float); insert into float10 values (true); insert into float10 values (false); drop table float10;
<filename>Diagramas/modeloFisico5.sql -- Geração de Modelo físico -- Sql ANSI 2003 - brModelo. CREATE schema estoque; use estoque; CREATE TABLE computador ( IdComp double PRIMARY KEY AUTO_INCREMENT, IdModelo double, IdAnalista double, SerialComp varchar(40), HostnameComp varchar(20), StatusComp varchar(20), Observac...
ALTER TABLE TA_Coupon ADD PayTypeID int , PaytypeName nvarchar(20), EdcDateTime Datetime, EdcTerminalId nvarchar(8), EdcCardNo nvarchar(8), EdcAmount decimal(6,2), EdcRef1 nvarchar(20), EdcRef2 nvarchar(20), EdcRef3 nvarchar(20); GO
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 27, 2018 at 08:10 AM -- Server version: 10.1.24-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
<reponame>paslo22/gis CREATE TABLE Visitas( gid serial PRIMARY KEY, geom geography(POINT,4326), nombre_lugar VARCHAR(50), fecha_visita DATE, duracion INT, calificacion INT ) WITH ( OIDS=FALSE ); /*INSERT INTO visitas( gid, geom, nombre_lugar, fecha_visita, duracion, calificacion) VALUES (1,'0...
<filename>db/init.sql<gh_stars>0 CREATE DATABASE IF NOT EXISTS univille; USE univille; CREATE TABLE IF NOT EXISTS `albuns` ( `id` int(11) NOT NULL AUTO_INCREMENT, `artist` varchar(200) NOT NULL, `name` varchar(200) NOT NULL, `genre` varchar(200) DEFAULT NULL, PRIMARY KEY (`id`) ); GRANT ALL PRIVILEGES ON ...
CREATE TABLE geo_bounds ( id SERIAL PRIMARY KEY, ne_lat DOUBLE PRECISION NOT NULL, ne_long DOUBLE PRECISION NOT NULL, sw_lat DOUBLE PRECISION NOT NULL, sw_long DOUBLE PRECISION NOT NULL )
-- +goose Up -- +goose StatementBegin CREATE TABLE "post" ( "id" SERIAL PRIMARY KEY, "title" varchar, "content" varchar, "author_id" int, "created_at" timestamp, "updated_at" timestamp ); ALTER TABLE "post" ADD FOREIGN KEY ("author_id") REFERENCES "author" ("id"); -- +goose StatementEnd -- +goose Down -- ...
/* Navicat Premium Data Transfer Source Server : localpg Source Server Type : PostgreSQL Source Server Version : 140002 Source Host : localhost:5432 Source Catalog : my_blog_db Source Schema : public Target Server Type : PostgreSQL Target Server Version : 140002 File E...
DROP PROCEDURE IF EXISTS getNumRepairExamples; DELIMITER $$ CREATE PROCEDURE getNumRepairExamples(OUT numEx INT) BEGIN SELECT COUNT(*) INTO numEx FROM repairexample; END
/* Navicat MySQL Data Transfer Source Server : Local Source Server Version : 100116 Source Host : localhost:3306 Source Database : db_wahana Target Server Type : MYSQL Target Server Version : 100116 File Encoding : 65001 Date: 2017-07-28 14:42:47 */ SET FOREIGN_KEY_CHECKS=0; -- -...
INSERT INTO "T_MAIL_NEWSLETTER_BODY" (id, idNewsletter, partName, bodyPart) VALUES (1, 1, 'question', 'How it''s goin'' bro?'); INSERT INTO "T_MAIL_NEWSLETTER_BODY" (id, idNewsletter, partName, bodyPart) VALUES (2, 1, 'answer', 'Sweet as hell!!!');
declare @verbose int = 0; -- change to 1 to get more verbose comparison; declare @source xml = '<place source XML result here>'; declare @target xml = '<place target XML result here>'; with src as( select property = x.v.value('name[1]', 'nvarchar(300)'), value = x.v.value('value[1]', 'nvarchar(300)') from @source....
-- Dropping tables DROP TABLE IF EXISTS route; DROP TABLE IF EXISTS airport; DROP TABLE IF EXISTS city_comment; DROP TABLE IF EXISTS city; DROP TABLE IF EXISTS country; DROP TABLE IF EXISTS authority; DROP TABLE IF EXISTS user; -- Start - Spring Security tables definition ---- Start - User table definition CREATE TAB...
DROP TABLE IF EXISTS _raw_sentences CASCADE; CREATE TABLE _raw_sentences ( sentence_id TEXT, sentence TEXT, terms TEXT, id BIGINT -- reserved for DeepDive? ); DROP TABLE IF EXISTS _annotated_sentences CASCADE; CREATE TABLE _annotated_sentences( sentence_id TEXT, words TEXT[], has_term BOOLEA...
DROP PROCEDURE IF EXISTS train_model_for_matching; GO CREATE PROCEDURE train_model_for_matching (@model_name varchar(100)) AS BEGIN DECLARE @inquery nvarchar(max) = N'select ld.Label'; declare @topics int = 50; declare @i int = 1; declare @j int = 1; while (@i <= @topics) begin set @inquery += concat(N', r.RT...
-- Copyright (c) 2013-2015 Snowplow Analytics Ltd. All rights reserved. -- -- This program is licensed to you under the Apache License Version 2.0, -- and you may not use this file except in compliance with the Apache License Version 2.0. -- You may obtain a copy of the Apache License Version 2.0 at http://www.apache.o...
<filename>ddl/tables.ddl CREATE TABLE Users ( id INT NOT NULL AUTO_INCREMENT , email VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, last_name VARCHAR(255), first_name VARCHAR(255), is_admin Boolean DEFAULT FALSE, created_at DATETIME DEFAULT CURRENT_...
begin; create type c_person_goals_status as enum ('canceled', 'failed', 'working', 'succeeded'); create table if not exists c_person_goals ( "id" serial primary key, "person_id" integer not null references c_person on delete cascade, "category" varchar(32) not null, "target" integer not null, "beg...
<filename>source/core/annotations/ut_annotation_cache_manager.pks create or replace package ut_annotation_cache_manager authid definer as /* utPLSQL - Version 3 Copyright 2016 - 2019 utPLSQL Project Licensed under the Apache License, Version 2.0 (the "License"): you may not use this file except in compliance...
update cachedfeeds set license_pool_id=NULL where type='series';
<filename>_includes/tutorials/merging/ksql/code/tutorial-steps/dev/describe-stream.sql<gh_stars>1-10 DESCRIBE EXTENDED ALL_SONGS;
alter table security_group_api_security_permission add constraint security_group_api_security_permission_permission_fk foreign key (security_permission_id) references security_permission; alter table security_group_api add constraint security_group_api_pk primary key (security_group_api_id); alter table security_grou...
<filename>src/test/tinc/tincrepo/ddl/default_distribution/sql_default_distribution_sensitive/create_table_basic.sql select attrnums from gp_distribution_policy where localoid = 'hobbies_r'::regclass; select attrnums from gp_distribution_policy where localoid = 'tenk1'::regclass;
CREATE TABLE expenses ( id SERIAL PRIMARY KEY, title TEXT NOT NULL, description TEXT NOT NULL, store TEXT NOT NULL, comments TEXT NOT NULL, booking_start TIMESTAMPTZ NOT NULL, booking_end TIMESTAMPTZ NOT NULL, is_deleted BOOL NOT NULL, is_template BOOL NOT NULL, is_preliminary BOOL NOT NULL, is_ta...
<reponame>skimedic/presentations IF OBJECT_ID(N'[__EFMigrationsHistory]') IS NULL BEGIN CREATE TABLE [__EFMigrationsHistory] ( [MigrationId] nvarchar(150) NOT NULL, [ProductVersion] nvarchar(32) NOT NULL, CONSTRAINT [PK___EFMigrationsHistory] PRIMARY KEY ([MigrationId]) ); END; GO BEGI...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : lun. 07 mai 2018 à 21:55 -- Version du serveur : 5.7.19 -- Version de PHP : 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
SET search_path = tasker, pg_catalog ; CREATE TABLE rt_task_category_status ( created_dt timestamp with time zone DEFAULT ( now () AT TIME ZONE 'UTC' ), updated_dt timestamp with time zone, created_by integer, updated_by integer, category_id int2 NOT NULL, status_id int2 NOT NULL, is_enable...
/* * Copyright (c) 2017 Public Library of Science * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, ...
CREATE DATABASE [blogengine_db] CONTAINMENT = NONE ON PRIMARY ( NAME = N'blogengine_db', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL14.SQLEXPRESS\MSSQL\DATA\blogengine_db.mdf' , SIZE = 4096KB , FILEGROWTH = 1024KB ) LOG ON ( NAME = N'blogengine_db_log', FILENAME = N'C:\Program Files\Microsoft SQL Ser...
create database trab3; use trab3; create table Tutor( CPF int not null primary key, Senha varchar(200) not null, Nome varchar(1000) not null, Login varchar(200) not null, DataNascimento date not null, Endereco varchar(2000) not null ); create table Rastreador( DataCadastro date not null, DataAtivacao date no...
-- --- -- Table 'Patient_Form' -- -- --- -- DROP TABLE IF EXISTS `Patient_Form`; CREATE TABLE `Patient_Form` ( `id` INTEGER NOT NULL AUTO_INCREMENT, `doctor_notes` VARCHAR(5000) NULL DEFAULT NULL, `id_physician` INTEGER DEFAULT NULL, `id_patient` INTEGER DEFAULT NULL, PRIMARY KEY (`id`) );
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 20, 2020 at 04:40 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
-- users CREATE TABLE `users` ( `id` INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(256) NOT NULL, `email` VARCHAR(256) NOT NULL );
<reponame>akshat-jjain/HackerRank-SQL-Solutions<gh_stars>1-10 SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '[aeiou]$' AND CITY REGEXP '^[aeiou].*';
-- Migration created on: 2021-09-22 23:19:32 DROP TABLE IF EXISTS locations.city CASCADE; DROP TABLE IF EXISTS locations.country CASCADE; DROP SCHEMA IF EXISTS locations CASCADE;
-- file:subscription.sql ln:110 expect:true ALTER SUBSCRIPTION testsub SET (slot_name = NONE)
<reponame>hackshields/Intranet CREATE TABLE B_WORKFLOW_DOCUMENT ( ID int NOT NULL IDENTITY (1, 1), STATUS_ID int NOT NULL, DATE_ENTER datetime NULL, DATE_MODIFY datetime NULL, DATE_LOCK datetime NULL, ENTERED_BY int NULL, MODIFIED_BY int NULL, LOCKED_BY int NULL, FILENAME varchar(255) NOT NULL, SIT...
<reponame>AndriiIlika/PerfKitBenchmarker select distinct(id) table_id ,trim(datname) db_name ,trim(nspname) schema_name ,trim(relname) table_name from stv_tbl_perm join pg_class on pg_class.oid = stv_tbl_perm.id join pg_namespace on pg_namespace.oid = relnamespace join pg_database on pg_database.oid = stv_tbl_per...