sql
stringlengths
6
1.05M
<reponame>fmidev/radon -- -- PostgreSQL database dump -- -- Dumped from database version 12.4 -- Dumped by pg_dump version 13.3 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config...
INSERT INTO posting (description, due_date, payday, value, observation, type, category_id, person_id) values ('Monthly Salary', '2017-06-10', null, 6500.00, 'Profit Distribution', 'REVENUE ', 5, 1); INSERT INTO posting (description, due_date, payday, value, observation, type, category_id, person_id) values ('Bahamas',...
CREATE TABLE [Staging].[LARS_StandardFunding] ( [StandardCode] INT NOT NULL, [FundingCategory] VARCHAR (50) NOT NULL, [EffectiveFrom] DATE NOT NULL, [EffectiveTo] DATE NULL, [BandNumber] INT NULL,...
<reponame>jarunnells/CWB-206_PHP SELECT frank FROM faculty; SELECT DISTINCT frank FROM faculty; SELECT ffname, fmi, flname, frank FROM faculty WHERE frank='ASSO'; SELECT room FROM location WHERE bldg_code='BUS' AND capacity>=40; SELECT sfname, slname, sdob, sclass FROM student WHERE sclass='SR' OR sdob<'1982-01-01'; SE...
<filename>scala/storages/db_postgresql_storage/src/main/resources/com/myodov/unicherrygarden/db/migrations/versioned/V20211208050912__create_indexes_ucg_tx_log.sql CREATE INDEX IF NOT EXISTS ucg_tx_log_erc20_address_from_to ON ucg_tx_log (address, ucg_erc20_transfer_event_get_from(topics), ...
<reponame>JonArnfred/Spring-Boot-REST -- user functions -- -------------------- ------- CRUD ------- -------------------- -- create create or replace function create_user( _user_name text, _organisation_name text) returns void as $$ declare _user_id integer; declare _organisation_id integer; begin -- create the use...
<filename>src/test/resources/sql/alter_table/a24f58e1.sql -- file:replica_identity.sql ln:41 expect:true ALTER TABLE test_replica_identity REPLICA IDENTITY USING INDEX test_replica_identity_othertable_pkey
<filename>src/test/resources/sql/insert/1b2aba76.sql -- file:numeric.sql ln:195 expect:true INSERT INTO num_exp_div VALUES (4,2,'-.22713465002993920385')
<gh_stars>1-10 ALTER TABLE `corpse_grid` ENGINE = MEMORY;
-- @author <NAME> (<EMAIL>) drop table host_node_map;
<reponame>DhuriPravin/DAMG6210_FinalProject<filename>CreateTables.sql CREATE DATABASE ORMS; GO --Creating Table Customer CREATE TABLE Customer ( customerID INT NOT NULL PRIMARY KEY IDENTITY(1000,1), [name] VARCHAR(50) NOT NULL, phone VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, userName VARCH...
<filename>tables.sql CREATE DATABASE mafengwo ; USE mafengwo CREATE TABLE personalUrl ( uid VARCHAR(30) Primary Key, perUrl VARCHAR(50) ); CREATE TABLE tourist ( uid VARCHAR(30) Primary Key, uname VARCHAR(20) CHARACTER SET 'utf8', gender ENUM('female','male'), residence VARCHAR(15) CHARA...
<filename>JOB-Queries/explicit/8d.sql select count(*) from aka_name AS an1 join name AS n1 on (an1.person_id = n1.id) join (select person_id, movie_id from cast_info AS ci join role_type AS rt on (rt.role ='costume designer' AND ci.role_id = rt.id) join title AS t on (ci.movie_id = t.id)) as t_ci on(t_ci.person_id...
<gh_stars>1000+ select sum(lo_revenue), d_year, p_brand1 from lineorder, date, part, supplier where lo_orderdate = d_datekey and lo_partkey = p_partkey and lo_suppkey = s_suppkey and p_brand1 = 'MFGR#2221' and s_region = 'EUROPE' group by d_year, p_brand1 order by d_year, p_brand1
<filename>codebase/projects/cae_reengineering/1.2/db/BREAST_CANCER_BIOMARKERS.sql /*L Copyright Duke Comprehensive Cancer Center Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/catrip/LICENSE.txt for details. L*/ CREATE TABLE BREAST_CANCER_BIOMARKERS ( ID ...
<filename>fixtures/doctests/ecpg/120/input.sql ecpg -o test_mod.c test_mod.pgc cc -c test_mod.c -o test_mod.o
<filename>db_patches/0079_AddMissingPrimaryKeys.sql DO $$ BEGIN IF register_patch('AddMissingPrimaryKeys.sql', '<NAME>', 'Add missing Primary keys', '2021-02-11') THEN ALTER TABLE technical_review ADD PRIMARY KEY (technical_review_id); ALTER TABLE technical_review DROP CONSTRAINT technical_review_techn...
---------------------------- -- Copyright (C) 2021 CARTO ---------------------------- CREATE OR REPLACE FUNCTION `@@BQ_PREFIX@@carto.__DELAUNAYGENERIC` (inputPoints ARRAY<GEOGRAPHY>) RETURNS ARRAY<GEOGRAPHY> AS (( WITH points AS ( SELECT ARRAY_AGG(unnested) AS arrayPoints, MIN(ST_X(unnested)) A...
DROP FUNCTION IF EXISTS pg_catalog.gs_hadr_in_recovery() cascade; SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 9138; CREATE OR REPLACE FUNCTION pg_catalog.gs_hadr_in_recovery ( OUT is_in_recovery boolean) RETURNS SETOF record LANGUAGE INTERNAL ROWS 1 STRICT as 'gs_hadr_in_recovery';
<reponame>bjacobel/epstein WITH RECURSIVE split ( passenger, str ) AS ( SELECT '', remarks || ', ' FROM manifest WHERE id = $ctx.source.id UNION ALL SELECT substr(str, 0, strpos(str, ', ')), substr(str, strpos(str, ', ') + 2) FROM split WHERE str <> '' ) SELECT passengers.*, split.passenger ...
<filename>SQL/CriarBancoDeCurso.sql USE [Curso] DROP TABLE [Aluno] CREATE TABLE [Aluno]( [Id] INT NOT NULL, [Nome] NVARCHAR(255) NOT NULL, [Email] NVARCHAR(255) NOT NULL, [Nascimento] DATETIME NULL, [Active] BIT NOT NULL DEFAULT(0) CONSTRAINT [PK_Aluno] PRIMARY KEY([Id]), --Primar...
<reponame>WKHAllen/md-docs CREATE TABLE IF NOT EXISTS document ( id CHAR(16) NOT NULL DEFAULT SUBSTR(MD5(RANDOM()::TEXT), 0, 17), creator_user_id CHAR(16) NOT NULL, group_id CHAR(16) NOT NULL, directory_id CHAR(16), name VARCHAR(255) NOT NULL, ...
<filename>FILE PENDUKUNG/projectsiakad/Desain DB Siakad SLB/slb.sql /*==============================================================*/ /* DBMS name: PostgreSQL 8 */ /* Created on: 10/29/2016 8:56:31 PM */ /*==============================================...
<reponame>AntoninaSych/news.loc<filename>news.sql -- phpMyAdmin SQL Dump -- version 4.4.15.5 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Час створення: Чрв 03 2017 р., 21:48 -- Версія сервера: 5.5.48 -- Версія PHP: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @...
<reponame>samudg7/CpfMeccanica-Site CREATE TABLE commenti( id int AUTO_INCREMENT NOT NULL, articolo int NOT NULL, username varchar(80) NOT NULL, commento varchar(2000) NOT NULL, mipiace int NOT NULL, PRIMARY KEY(id), FOREIGN KEY(articolo) REFERENCES news(id) ON UPDATE CASCADE ON DELETE CASCADE )ENGINE='Inn...
<reponame>troywiegel/sql-employee-tracker<gh_stars>0 USE employee_db; INSERT INTO department (name) VALUES ('Developers'), ('Marketing'), ('Admin'); INSERT INTO role (title, salary, department_id) VALUES ('Lead Developer', 120000, 1), ('Junior Developer', 75000, 1), ('Marketing Manager', 9...
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 28, 2014 at 07:18 PM -- Server version: 5.5.40-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
CREATE OR REPLACE PROCEDURE reporte_2(reporte_2_cursor OUT sys_refcursor,ESTADO VARCHAR2) IS BEGIN OPEN reporte_2_cursor FOR SELECT data.nombre_productores, data.id_contratos, data.fecha_registro, data.nombre_deliverys, ...
<filename>Impl/agensgraph/load_datasets/ecommerce/load_json.sql \c ecommerce; COPY "order" (data) FROM '/ecommerce/json/order.json'; CREATE INDEX order_customer_id_idx ON "order"((data->>'customer_id')); CREATE INDEX order_order_id_idx ON "order"((data->>'order_id')); CREATE INDEX order_orderline_product_id_idx ON "...
<reponame>villeheikkila/maku<filename>@api/db/migrations/committed/000062.sql --! Previous: sha1:8ffea8e2adcf8d1904684d47b99daa7741366bf9 --! Hash: sha1:c3836911fe72d552d8872a1950dba1d91ec4ac13 --! split: 1-current.sql -- Enter migration here DROP FUNCTION app_public.create_product(flavor text, type_id int, brand_id i...
insert into zs_branch (z, z_num, z_bool) values ('z_1', 1, true) , ('z_2', 2, false) , ('z_3', 3, true) , ('z_4', 4, false);
<gh_stars>1-10 --ch1 select * from employees select * from employees
<filename>etl/naaccr-etl/db/migrate/CommonDataModel-5.3.1/Redshift/VocabImport/OMOP CDM redshift vocab load copy concept_numeric_3_10.sql -- ******************************************************************* -- NAME: OMOP CDM redshift load copy concept_numeric_3_10.sql -- DESC: Load concept_numeric -- *************...
<gh_stars>100-1000 DROP FUNCTION IF EXISTS get_ledger_values_for_cases(TEXT[], TEXT, TEXT, TIMESTAMP, TIMESTAMP); CREATE FUNCTION get_ledger_values_for_cases( p_case_ids TEXT[], p_section_id TEXT DEFAULT NULL, p_entry_id TEXT DEFAULT NULL, date_window_start TIMESTAMP DEFAULT NULL, date_window_end T...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 17-Jun-2020 às 13:06 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
-- Multi-Table Query Practice -- Display the ProductName and CategoryName for all products in the database. Shows 77 records. select ProductName, CategoryName from Product as p join Category as c on p.CategoryId = c.Id -- Display the order Id and shipper CompanyName for all orders placed before August 9 2012. Sho...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 18, 2021 at 06:08 AM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
DROP TABLE IF EXISTS Cases; DROP TABLE IF EXISTS Employee; DROP TABLE IF EXISTS Events; DROP TABLE IF EXISTS Category; DROP TABLE IF EXISTS User; DROP TABLE IF EXISTS Status; DROP TABLE IF EXISTS Organization; DROP TABLE IF EXISTS Place; DROP TABLE IF EXISTS kommune; DROP TABLE IF EXISTS fylke; CREATE TABLE Place ( ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 17, 2021 at 07:51 PM -- Server version: 8.0.26-0ubuntu0.20.04.2 -- PHP Version: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_S...
<filename>EmployeeDB.sql -- Exported from QuickDBD: https://www.quickdatabasediagrams.com/ -- Link to schema: https://app.quickdatabasediagrams.com/#/d/RqLKdv -- NOTE! If you have used non-SQL datatypes in your design, you will have to change these here. -- Modify this code to update the DB schema diagram. -- To rese...
SELECT {{ columnNames }} FROM users WHERE email_address = '{{ emailAddress }}';
select sum(einkaufspreis)/100.0 as value from kiosk_kiosk
SELECT t1.name, count(*) FROM site as s, so_user as u1, question as q1, answer as a1, tag as t1, tag_question as tq1 WHERE q1.owner_user_id = u1.id AND a1.question_id = q1.id AND a1.owner_user_id = u1.id AND s.site_id = q1.site_id AND s.site_id = a1.site_id AND s.site_id = u1.site_id AND s.site_id = tq1.site_id AND s.s...
<reponame>kevinb1989/samplejurymanagement<filename>samplejurymanagement.sql -- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 20, 2014 at 12:26 AM -- Server version: 5.6.16 -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "...
/* SQLyog Community v12.4.3 (64 bit) MySQL - 10.1.21-MariaDB : Database - diamond ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 21-Ago-2018 às 17:34 -- Versão do servidor: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
<filename>Chapter02/SQL/fctPurchase.View.sql /* Database: WideWorldImportersDW View: BI.fctPurchase */ CREATE OR ALTER VIEW BI.fctPurchase AS SELECT [Purchase Key] ,CAST([Date Key] AS DATETIME) AS [Date Key] ,[Supplier Key] ,[Stock Item Key] ,[WWI Purchase Order ID] ,[Ordered Ou...
<reponame>Shuttl-Tech/antlr_psql -- file:arrays.sql ln:491 expect:true drop type comptype
<reponame>huysentruitw/SQLStreamStore SELECT dbo.Streams.[Version] FROM dbo.Streams WHERE dbo.Streams.Id = @streamId
insert into positions(person, organization, title, start_date, start_date_precision, end_date, end_date_precision, urls, notes, employment_type, cause_area) values ('<NAME>', 'Raising for Effective Giving', 'Board member', '2014-06-01', 'month', NULL, NULL, 'https://web.archive.org/web/20140709070515/http://reg-c...
-- -- MIT No Attribution -- -- 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, -- merge, publish, distribut...
<reponame>ezcater/WhereHows -- -- Copyright 2015 LinkedIn Corp. All rights reserved. -- Postgres conversion copyright 2018 ezCater, Inc. All rights reserved. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy...
<reponame>Selvasundaram/gluster-ovirt truncate table async_tasks;
/****** Object: Table [T_Processor_Tool] ******/ /****** RowCount: 296 ******/ /****** Columns: Processor_Name, Tool_Name, Priority, Enabled, Comment, Last_Affected ******/ INSERT INTO [T_Processor_Tool] VALUES ('Mash-01_CTM','DatasetInfo',4,0,'Decommissioned','9/22/2017 4:34:19 PM') INSERT INTO [T_Processor_Tool]...
DROP KEYSPACE IF EXISTS armory;
DROP TABLE IF EXISTS test2;
ALTER TABLE m_group CHANGE COLUMN `status_id` `status_enum` INT(5) NOT NULL DEFAULT '300' ; ALTER TABLE m_client CHANGE COLUMN `status_id` `status_enum` INT(5) NOT NULL DEFAULT '300' ; update r_enum_value set enum_name = 'status_enum' where enum_name = 'status_id';
{% macro create_source_table() %} {% set target_schema=api.Relation.create( database=target.database, schema="codegen_integration_tests__data_source_schema" ) %} {% do adapter.create_schema(target_schema) %} {% set drop_table_sql %} drop table if exists {{ target_schema }}.codegen_integration_tests__data_so...
<filename>src/test/resources/bvt/parser/antlr_grammers_v4_tsql/server_configuration.sql ALTER SERVER CONFIGURATION SET PROCESS AFFINITY CPU=0 TO 63, 128 TO 191; ALTER SERVER CONFIGURATION SET PROCESS AFFINITY NUMANODE=0, 7; ALTER SERVER CONFIGURATION SET PROCESS AFFINITY NUMANODE=0, 7; ALTER SERVER CONFIGURATION SE...
-- phpMyAdmin SQL Dump -- version 3.4.10.1deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Erstellungszeit: 18. Feb 2013 um 15:28 -- Server Version: 5.5.29 -- PHP-Version: 5.3.10-1ubuntu3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
<reponame>lintzc/GPDB --- pg_depend table --- \echo -- start_ignore select * from pg_depend; \echo -- end_ignore
<reponame>chinu0108/presentation create database bank;
<reponame>thiesgerken/stockdb<filename>migrations/2020-04-15-202447_add_stock_description/up.sql ALTER TABLE stock_infos ADD description TEXT;
<reponame>grumpyguvner/soactive-wms INSERT INTO `tabs` (`uuid`, `name`, `tabgroup`, `location`, `displayorder`, `enableonnew`, `roleid`, `tooltip`, `notificationsql`, `createdby`, `creationdate`, `modifiedby`, `modifieddate`) VALUES ('tab:0f687582-f19c-c1d1-eb63-d1bc7359845f','general','styles entry','modules/activewms...
USE EmployeeTrackerDB; -- department: INSERT INTO EmployeeTrackerDB.department ( name) VALUES ('Business Office'); INSERT INTO EmployeeTrackerDB.department ( name) VALUES ('Human Resources'); INSERT INTO EmployeeTrackerDB.department ( name) VALUES ('Finance'); -- role: INSERT INTO EmployeeT...
-- -------------------------------------------------------- -- Host: localhost -- Versión del servidor: 5.7.24 - MySQL Community Server (GPL) -- SO del servidor: Win64 -- HeidiSQL Versión: 10.2.0.5599 -- -------------------------------------------------------- /...
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.0.33-community-nt /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CO...
CREATE TABLE IF NOT EXISTS "ethnics" ( "ethnic" VARCHAR(40), PRIMARY KEY ("ethnic") );
<reponame>giannini5/fields create table if not exists division ( id bigint auto_increment, seasonId bigint not NULL, name varchar(60) not NULL, gender varchar(20) not NULL, maxPlayersPerTeam int default 22, gameDuratio...
<gh_stars>0 use dmsmin go ------------------------------------------------------------------------------------ -- Skalarfunktion CREATE FUNCTION data.InKB ( -- Add the parameters for the function here @valueInByte int ) RETURNS float AS BEGIN -- Return the result of the function RETURN @valueInByte / 1024.0 END ...
PRAGMA foreign_keys = off; BEGIN TRANSACTION; DROP TABLE IF EXISTS game; CREATE TABLE game ( gameID STRING PRIMARY KEY NOT NULL, gameState STRING NOT NULL, nextMove STRING NOT NULL ); COMMIT TRANSACTION; PRAGMA foreign_keys = on;
CREATE TABLE `account` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL UNIQUE, `password_hash` varchar(255) NOT NULL, `display_name` varchar(255), `avatar` text, `header` text, `note` text, `create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, INDEX `idx_username` (`user...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50637 Source Host : localhost:3306 Source Database : blog Target Server Type : MYSQL Target Server Version : 50637 File Encoding : 65001 Date: 2017-09-26 23:44:42 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
<gh_stars>1-10  insert into automobil(godiste,registarska_oznaka,br_vozila,tip_automobila) values(2003,'NS021-GG',3,0), (2002,'NS553-AM',3,1), (2003,'NS425-NP',3,0), (2001,'NS123-FF',3,0), (2010,'NS356-OK',3,1); insert into adresa(ulica,broj,mesto,pozivni_broj) values('Železnička',33,'Novi Sad',21000), ('Radnič...
<gh_stars>1-10 -- NOTES -- -- VS Code Extension MSSQL Tools is awesome -- Allow things like OPENQUERY to be ran sp_configure 'Show Advanced Options', 1 GO RECONFIGURE GO sp_configure 'Ad Hoc Distributed Queries', 1 GO RECONFIGURE GO -- Get SQL Server version -- SELECT @@VERSI...
USE [CSETWeb] GO /****** Object: Table [dbo].[GENERAL_SAL] Script Date: 11/14/2018 3:57:24 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[GENERAL_SAL]( [Assessment_Id] [int] NOT NULL, [Sal_Name] [varchar](50) NOT NULL, [Slider_Value] [int] NOT NULL, CONSTRAINT [PK_GENERAL_SAL_1]...
BEGIN TRANSACTION; /* Add incorrectVotes field */ CREATE TABLE "sqlb_temp_table_1" ( "videoID" TEXT NOT NULL, "startTime" REAL NOT NULL, "endTime" REAL NOT NULL, "votes" INTEGER NOT NULL, "incorrectVotes" INTEGER NOT NULL default 1, "UUID" TEXT NOT NULL UNIQUE, "userID" TEXT NOT NULL, "timeSubmitted" INTEGER N...
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS claimant ( id INT NOT NULL AUTO_INCREMENT, data json NOT NULL, nino varchar(200) GENERATED ALWAYS AS (json_unquote(json_extract(data,'$.nino'))) VIRTUAL, citizen_id varchar(100) GENERATED ALWAYS AS (json_unquote(json_extract(data,'$._id.citizenId'))) VIRTUAL, ...
-- drop table if exists trade_account_manager.profit; create table trade_account_manager.profit( id int primary key auto_increment, product_name char(63) not null, cash_name char(63) not null, user_name char(63) not null, algo_name char(63) default null, hold_symbol char(255) not null, hold_flag char(255) not ...
<reponame>rbkmoney/messages create schema if not exists msgs; create table if not exists msgs.author ( id varchar(255) not null constraint author_pkey primary key, email varchar not null, full_name varchar(255) not null ); create table if not exists msgs.conversation ( id varchar(2...
<filename>oracle_script/db_conversion/r_wy_mods.sql undefine olduser define olduser = &1 @do_tabletriggers disable r_wy insert into r_wy (site_datatype_id,start_date_time,end_date_time,date_time_loaded,value,source_id,validation) select site_datatype_id, date_wy, ADD_MONTHS(date_wy,12), trunc(...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : 本地数据库 Source Server Type : MySQL Source Server Version : 50724 Source Host : localhost:3306 Source Schema : drseven Target Server Type : MySQL Target Server Version : 50724 File Encoding : 65001 Date: 13/01...
<reponame>gorun8/easyfk /* * Project:Easy Web Framework * Description: * EasyFK stands for Easy Web Framework.It's an open source product for E-Business / E-Commerce.It * was launched by a chinese Hezhiping(QQ:110476592) in 2015.The goal of EasyFK is to provide a * foundation and starting point for reliable, secu...
<reponame>lbouma/Cyclopath<filename>scripts/schema/ccpv2/201-apb-43-branch-cnstrnts.sql /* Copyright (c) 2006-2013 Regents of the University of Minnesota For licensing terms, see the file LICENSE. */ /* This script constrains columns we populated in previous scripts. */ /* Run this script once against each instanc...
-- Table AUTHZ_PATHS_SNAPSHOT_ID for class [org.apache.sentry.provider.db.service.model.MAuthzPathsSnapshotId] CREATE TABLE "AUTHZ_PATHS_SNAPSHOT_ID" ( "AUTHZ_SNAPSHOT_ID" bigint NOT NULL, CONSTRAINT "AUTHZ_SNAPSHOT_ID_PK" PRIMARY KEY ("AUTHZ_SNAPSHOT_ID") );
create index THUMBNAIL_TITLE_ID_INDEX on THUMBNAIL (TITLE_ID);
<reponame>impira/yugabyte-db<gh_stars>1000+ ALTER TABLE alert_receiver DROP COLUMN IF EXISTS target_type;
BEGIN TRANSACTION; CREATE TABLE "Simulations" ( `SIMID` TEXT NOT NULL, `FullName` TEXT NOT NULL, `Shortname` TEXT, `Executable` TEXT NOT NULL, `Output` TEXT NOT NULL, `Configuration` BLOB, `ExecutionPrefix` TEXT, `ExecutionHostFile` TEXT, PRIMARY KEY(SIMID) ); CREATE TABLE `Instances` ( `IID` TEXT NOT NULL, ...
<gh_stars>100-1000 -- Copyright 2020 The Go Authors. All rights reserved. -- Use of this source code is governed by a BSD-style -- license that can be found in the LICENSE file. BEGIN; CREATE INDEX idx_licenses_module_id ON licenses (module_id); ALTER TABLE licenses DROP CONSTRAINT licenses_pkey; ALTER TABLE licenses...
SELECT TOP 5 e.EmployeeID, e.FirstName, e.Salary, d.Name AS [DepartmentName] FROM Employees e INNER JOIN Departments d ON d.DepartmentID = e.DepartmentID WHERE e.Salary > 15000 ORDER BY d.DepartmentID
<reponame>karpikpl/DbEx CREATE SCHEMA [Test]
<reponame>pradeepp88/DApp-Counter-Contract<filename>app/node-postgres/database.sql CREATE DATABASE sample_database; --\c into sample_database CREATE TABLE events( event_id SERIAL PRIMARY KEY, description VARCHAR(255) );
INSERT INTO celebrities (first_name, last_name, occupation, date_of_birth) VALUES ('Scarlett', 'Johansson', 'Actress', '1984-11-22');
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 14-02-2022 a las 19:42:50 -- Versión del servidor: 10.4.22-MariaDB -- Versión de PHP: 8.0.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 22, 2019 at 09:01 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.1.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 08, 2016 at 10:58 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
CREATE TABLE parking_lot ( lot_id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, address VARCHAR(255) NOT NULL, city VARCHAR(255) NOT NULL, state CHAR(2) NOT NULL, zip_code INT(5) UNSIGNED ZEROFILL NOT NULL, capacity INT UNSIGNED NOT NULL ) ENGINE=InnoDB; CREATE TABLE vehicle ( vin CHAR(17) PRIMA...
<filename>MarketingDataCapture/MarketingDataCapture.Database/Tables/ContactDetail.sql CREATE TABLE ContactDetail ( Id BIGINT IDENTITY(1, 1) NOT NULL, Person_Id BIGINT NOT NULL, Created DATETIME NOT NULL, Captured DATETIME NOT NULL, EmailAddress NVARCHAR (256) NOT NULL, EmailVerificationCompleti...
<reponame>marten-seemann/oxid-responsive-emails<filename>build/sql/install.sql UPDATE `oxcontents` SET `OXCONTENT`=UNHEX('466F6C67656E646520417274696B656C2077757264656E20736F6562656E20756E746572205B7B202473686F702D3E6F7873686F70735F5F6F786E616D652D3E76616C7565207D5D2062657374656C6C743A'), `OXCONTENT_1`=UNHEX('5...
declare cur cursor for select iMaCauHoi,vNoiDungCauHoi,iSoDiemCong from tbl_CauHoi declare @MaCH int declare @SoDiemCong tinyint declare @vNoiDungCauHoi nvarchar(4000) open cur fetch cur into @MaCH,@vNoiDungCauHoi,@SoDiemCong while (@@fetch_status=0) begin if @SoDiemCong=4 print cast(@MaCH as varchar(5)) + ' - ' + @...