sql stringlengths 6 1.05M |
|---|
-- 2102 Number of persons by device by start month, by device_concept_id
--HINT DISTRIBUTE_ON_KEY(stratum_1)
select 2102 as analysis_id,
CAST(m.device_CONCEPT_ID AS VARCHAR(255)) as stratum_1,
CAST(YEAR(device_exposure_start_date)*100 + month(device_exposure_start_date) AS VARCHAR(255)) as stratum_2,
cast(null ... |
<reponame>starchild92/SICOMUNAL
-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 08-10-2016 a las 14:57:50
-- Versión del servidor: 5.6.26
-- Versión de PHP: 5.6.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @... |
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table conductor (
id bigint auto_increment not null,
nombre varchar(255),
cedula integer,
celular inte... |
<reponame>nmbazima/SQL-Scripts
/*******************************************************************************
Script: Show Server Memory Details.sql
Author: <NAME>
Date: 06/01/2014
RUN THIS SCRIPT WITH RESULTS TO TEXT.
Description:
------------
Runs a number of queries to display informatio... |
BEGIN;
-- Organizations
INSERT INTO organizations (id, display_name) VALUES ('org1', 'My Organization') ON CONFLICT DO NOTHING;
INSERT INTO organizations (id, display_name) VALUES ('org2', 'My Organization 2') ON CONFLICT DO NOTHING;
-- Organization members for org1
INSERT INTO service_accounts (organization_id, na... |
INSERT INTO tb_pay
(
pay_id,
third_part_id,
pay_type,
order_id,
consumer_id,
pay_amount,
pay_status,
pay_title,
removed,
create_time,
update_time
)
VALUES (1,1,'支付宝',1,1,50,1,'cxk的点餐订单',0,CURRENT_TIMESTAMP ,CURRENT_TIMESTAMP ),
(2,2,'支付宝',2,1,50,0,'cxk的点餐订单',0,CURRENT... |
-- // CB-1455 remove proxyconfig environment connection
-- Migration SQL that makes the change goes here.
DROP TABLE IF EXISTS public.env_proxy;
DROP INDEX IF EXISTS public.idx_env_proxy_envid;
DROP INDEX IF EXISTS public.idx_env_proxy_proxyid;
-- //@UNDO
-- SQL to undo the change goes here.
CREATE TABLE IF NOT EXIS... |
-- @Description Truncate on uao partition tables
--
Drop table if exists sto_alt_uao_part_trunc;
CREATE TABLE sto_alt_uao_part_trunc (id int, date date, amt decimal(10,2)) with (appendonly=true, orientation=column)
DISTRIBUTED BY (id)
PARTITION BY RANGE (date)
( PARTITION sales_Jul13 START (date '2013-07-01') INCLUSI... |
--test rand function with types char, nchar
select rand('char') from db_root;
select rand(n'nchar') from db_root order by 1; |
<reponame>kennywlo/datacat
-- only for development
set sql_mode = '';
-- drop table ContainerSearch;
drop table if exists VerDatasetMetaString ;
drop table if exists VerDatasetMetaNumber ;
drop table if exists VerDatasetMetaTimestamp ;
drop table if exists VerDatasetMetaRoot ;
drop table if exists DatasetGroup... |
<gh_stars>0
INSERT INTO oskari_maplayer_group(locale, parentid, selectable, order_number)
VALUES(
'{"fi":{"name":"Tilastointiyksiköt"}, "sv":{"name":"Statistiska enheter"}, "en":{"name":"Statistical units"}}',
-1,
true,
1000000);
INSERT INTO oskari_maplayer_group_link(maplayerid, groupid, order_number)... |
--EXEC [dbo].[Sp_RationCard_Save] 2, 'D4258BF47531', '0', '3', 'RKSY-I', 'RKSY-I-1204156044', '0', '325406410942', 'MAHADEB DAS'
--, '1', '0', 'MAHADEB DAS', '1', 'Self', 'M DAS', '2', 'Father', '04-28-2018 18:23:30', '8697033839', '48', '1', 'NATUN PALLY SUBHASRAM,SOUTH 24 PGS,WEST BENGAL 700147', ''
IF EXISTS (SELEC... |
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 04, 2019 at 08:52 AM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
<reponame>lancebailey26/employeeManager<gh_stars>0
INSERT INTO department (name)
VALUES ("Sales"), ("Engineering"), ("Legal"),("Finance");
INSERT INTO roles (title, salary, department_id)
VALUES ("Sales Lead", 250000, 1),
("Lead Engineer", 250000, 2),
("Legal Team Lead",250000, 3),
("Lead A... |
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603707',@CutoffDate = N'2017-09-30',@EPS = N'0.5979',@EPSDeduct = N'0',@Revenue = N'7.84亿',@RevenueYoy = N'73.75',@RevenueQoq = N'-',@Profit = N'2.24亿',@ProfitYoy = N'9.16',@ProfiltQoq = N'-',@NAVPerUnit = N'4.6321',@ROE = N'14.71',@CashPerUnit = N'-0.4171',@GrossProfitRate = N'46.1... |
<filename>db_klinik (1).sql
-- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 31, 2018 at 06:06 AM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "... |
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF EXISTS (SELECT Routine_Name from information_schema.Routines WHERE Routine_Name = 'archiveAuditLog')
DROP PROCEDURE [archiveAuditLog]
GO
CREATE PROCEDURE [dbo].[archiveAuditLog]
AS
DECLARE @exectime DATE;
SET @exectime = GETDATE();
INSERT INTO dbo.[AuditLogsBack... |
<reponame>stplat/revizor
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.12 (Ubuntu 10.12-0ubuntu0.18.04.1)
-- Dumped by pg_dump version 10.12
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_string... |
SET DEFINE OFF;
CREATE INDEX AFW_13_PREFR_FK2 ON AFW_13_PREFR
(REF_DV_CONDT_SAUVG)
LOGGING
/
|
<filename>sql/post_modelling/recall_analysis_by_learner.sql
with tbl as (
select
e.model,
e.experiment,
e.fold,
e.feature_set,
e.param_config,
e.algorithm,
e.date_ran,
NULL::varchar as k,
p.key::date as precision_as_of_date,
p.value as p_list,
r.value as r_list,
cast(p.value as jsonb) as precision,
--unnest(string_to_... |
/****** Object: Stored Procedure dbo.b4nGetAllCategoryMenu Script Date: 23/06/2005 13:31:07 ******/
CREATE procedure dbo.b4nGetAllCategoryMenu
@parentCategoryID varchar(40)
as
begin
declare @sql varchar(1000)
set @sql = ' select * from b4ncategorymenu with(nolock) where parentmenuid in ( ' + ... |
WITH seg AS (:with)
INSERT INTO que_jobs (job_class, args)
SELECT
'CampaignJob' AS job_class,
json_build_array(:campaign_id, seg.id)
FROM seg
|
IF NOT EXISTS (SELECT * FROM sys.tables WHERE name = 'MrData')
BEGIN
CREATE TABLE dbo.MrData(
BusinessEntityID int NOT NULL,
NameStyle dbo.NameStyle NOT NULL,
Title nvarchar(8) NULL,
FullName nvarchar (255) NULL,
Suffix nvarchar(10) NULL
)
END
ELSE
TRUNCATE TABLE dbo.MrDa... |
-- 2021-07-01T15:39:27.020Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,579439,0,'IsBudgetIssueInvoiced',TO_TIMESTAMP('2021-07-01 18:39:26','YYY... |
delete
from discrete_ground_water
where exists
(select null
from field_visit_readings_by_loc
where json_data_id = ?
and partition_number = ?
and discrete_ground_water.location_identifier = field_visit_readings_by_loc.location_identifier
)
|
<gh_stars>0
CREATE TABLE [dbo].[ContestantJugemnents] (
[ContestantJugemnentID] INT IDENTITY (1, 1) NOT NULL,
[ContestantID] INT NOT NULL,
[JugeID] NVARCHAR (450) NOT NULL,
[CategoryID] INT NOT NULL,
[CategoryCriteariaID] INT ... |
<reponame>mettlesolutions/coverage_determinations
//Lumbar Artificial Disc Replacement (LADR)
library LumbarArtificialDiscReplacement
using FHIR
include FHIRHelpers version '1.8' called FHIRHelpers
//include otherLibrary version 'x.x' called otherLibrary
//codesystem codeSystemName : 'OID' version 'x.x'
//valueset va... |
<filename>ScriptDevelopmentTool/db/IAP_InfrastructureStore.sql
USE [IAP_InfrastructureStore]
GO
CREATE TABLE [dbo].[AlertType](
[ID] [int] NOT NULL,
[Type] [varchar](50) NOT NULL,
CONSTRAINT [PK_Alerts] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF,... |
-- phpMyAdmin SQL Dump
-- version 4.9.5deb2
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost:3306
-- Tiempo de generación: 02-02-2022 a las 15:23:32
-- Versión del servidor: 10.3.32-MariaDB-0ubuntu0.20.04.1
-- Versión de PHP: 8.0.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;... |
<filename>yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/yoomath/console/src/main/java/tpl/sql/EmbeddedApp.sql
#macro($zycList(app,location))
SELECT * FROM embedded_app WHERE location = :location
#if(app == -1)
AND app IS NULL
#end
#if(app != -1)
AND app = :app
#end
ORDER BY sequence ASC
#end
|
BEGIN;
ALTER TABLE campaigns DROP COLUMN IF EXISTS closed_at;
COMMIT;
|
<filename>inst/sql/sql_server/field_fk_class.sql
/*********
FK_CLASS
Drug era standard concepts, ingredients only
Parameters used in this template:
cdmDatabaseSchema = @cdmDatabaseSchema
vocabDatabaseSchema = @vocabDatabaseSchema
cdmTableName = @cdmTableName
cdmFieldName = @cdmFieldName
fkClass = @fkClass
**********/... |
-- Name: ReviewEditsBySite
-- Schema: posda_files
-- Columns: ['project_name', 'site_name', 'series_instance_uid', 'new_visibility', 'reason_for', 'earliest', 'latest', 'num_files']
-- Args: ['site']
-- Tags: ['Hierarchy', 'review_visibility_changes']
-- Description: Show all file visibility changes by series for site
... |
{% macro get_tables_by_suffix(schema, suffix, exclude='') %}
{%- call statement('tables', fetch_result=True) %}
select
distinct table_schema || '.' || table_name as ref
from information_schema.tables
where table_schema = '{{ schema }}'
and table_name ilike '%{{ suffix }... |
create role $JCPERL;
grant $JCPERL to $JCSYSTEM;
GRANT $JCCLIENT to $JCADMIN;
GRANT ALL ON SCHEMA jobcenter TO $JCPERL;
CREATE EXTENSION IF NOT EXISTS plperl;
drop extension plperlu;
DROP FUNCTION IF EXISTS jobcenter.nexttask(error boolean, workflow_id integer, task_id integer, job_id bigint);
DROP FUNCTION IF E... |
-- client_login_requests table
-- !Ups
CREATE TABLE client_login_requests (
id BIGSERIAL NOT NULL,
client_login_request_id VARCHAR(255) UNIQUE NOT NULL,
request_client_id_hash VARCHAR(255) UNIQUE NOT NULL,
request_client_id_enc BYTEA NOT NULL,
channel_id VARCHAR(255) NOT NULL,
codename_enc BYT... |
insert mitglieder
(`MitgliederId`,
`MitgliedsNr`,
`Vorname`,
`Name`,
`Geschlecht`,
`Anrede`,
`GeburtsDatum`,
`PLZ`,
`Wohnort`,
`Strasse`,
`Telefon1`,
`Telefon2`,
`HandyNr`,
`Fax`,
`LetzteAenderung`,
`Email`,
`Beruf`,
`Nationalitaet`,
`BLZ`,
`Bank`,
`IBAN`,
`KontoNr`,
`Status`,
`AktivPassiv`,
`Kontoinhaber`,
`Schulort... |
<gh_stars>10-100
ALTER TABLE `web_domain` ADD `pm_max_children` INT NOT NULL DEFAULT '50' AFTER `php_fpm_use_socket` ,
ADD `pm_start_servers` INT NOT NULL DEFAULT '20' AFTER `pm_max_children` ,
ADD `pm_min_spare_servers` INT NOT NULL DEFAULT '5' AFTER `pm_start_servers` ,
ADD `pm_max_spare_servers` INT NOT NULL DEFAULT... |
<reponame>Quebe/Mercury-Care-Management<filename>Mercury.Database/Mercury.Database.Environment.Dal/Schema Objects/Schemas/dal/Views/AuthorizedServiceAnalysisAuthorization.view.sql
CREATE VIEW [dal].[AuthorizedServiceAnalysisAuthorization] AS
SELECT
[Authorization].AuthorizationId,
[Authorization].Autho... |
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 16, 2019 at 04:11 PM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 7.3.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
ALTER TABLE okonomi_xml_mottatt
DROP COLUMN sekvens;
ALTER TABLE okonomi_xml_mottatt
DROP COLUMN tilkoblet;
ALTER TABLE okonomi_xml_mottatt
ADD COLUMN kravstatuskode VARCHAR NOT NULL;
COMMENT ON COLUMN okonomi_xml_mottatt.kravstatuskode
IS 'Angir mottatt xmls kravstatus';
ALTER TABLE okonomi_xml_mot... |
<reponame>EstherWaweru/SQLPractice
-- Query all columns for all American cities in the CITY table with populations larger than 100000. The CountryCode for America is USA.
Select * from city where population>100000 and countrycode='USA' |
<reponame>GabrielMitrea/MovieApplicationWeb
CREATE TABLE [dbo].[Serialss] (
[Id] INT IDENTITY(1,1) NOT NULL,
[DivertismentTypeId] INT NULL,
[Title] NVARCHAR (50) NULL,
[GenreId] INT NULL,
[NumberOfSeasons] INT NULL,
... |
DROP DATABASE IF EXISTS employees_DB;
CREATE DATABASE employees_DB;
USE employees_DB;
CREATE TABLE department(
department_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
department_name VARCHAR(30) NOT NULL
);
CREATE TABLE role(
role_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(30),
salary DECIMAL,... |
CREATE TABLE master_project_info (
record_id int IDENTITY(1,1) PRIMARY KEY,
project_name nvarchar(128) NOT NULL,
project_title nvarchar(256) NOT NULL,
short_desc nvarchar(max) NOT NULL,
long_desc nvarchar(max) NOT NULL,
img_url_path varchar(2048) NOT NULL,
project_initiator nvarchar(128) NOT NU... |
select a from tbl1
GO
select b from tbl2
GO
|
<filename>learn_ci.sql
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Apr 01, 2020 at 07:13 PM
-- Server version: 10.1.44-MariaDB-0ubuntu0.18.04.1
-- PHP Version: 7.4.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!4010... |
--------------------------------------------------------
-- Constraints for Table EVENT
--------------------------------------------------------
ALTER TABLE "EVENT" ADD CONSTRAINT "EVENT_PK" PRIMARY KEY ("PERSON_ID", "TYPE") ENABLE;
ALTER TABLE "EVENT" MODIFY ("TYPE" NOT NULL ENABLE);
ALTER TABLE "EVENT" MODIFY... |
USE `essentialmode`;
INSERT INTO `addon_account` (name, label, shared) VALUES
('society_ambulance', 'Ambulance', 1)
;
INSERT INTO `addon_inventory` (name, label, shared) VALUES
('society_ambulance', 'Ambulance', 1)
;
INSERT INTO `datastore` (name, label, shared) VALUES
('society_ambulance', 'Ambulance', 1)
;
INS... |
<reponame>Catfeeds/weiphp
CREATE TABLE IF NOT EXISTS `wp_notemsg` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`title` varchar(100) NOT NULL COMMENT '消息标题',
`content` text NOT NULL COMMENT '消息内容',
`extra` text NOT NULL COMMENT '附加说明',
`ctime` varchar(20) NOT NULL COMMENT '添加时间',
PRIMARY K... |
<filename>dbDesign/Stored Procedures/InsertTags.sql
CREATE PROCEDURE usp_InsertTags
AS
BEGIN
INSERT INTO TAG(PhotoID, Tag)
VALUES ('0', '#fun')
END;
|
<reponame>bcgov/EDUC-GRAD-BATCH-GRADUATION-API
CREATE OR ALTER PROCEDURE [updateGradStudentChanges]
AS
DECLARE @newStudentList StudentList;
DECLARE @newStudentDemographicList StudentDemographicList;
DECLARE @existingStudentList StudentDemographicList;
DECLARE @existingStudentDemographicList StudentDemographicList;
... |
ALTER TABLE `characters`
ADD COLUMN `CustomEntityLook` text NULL AFTER `EntityLook`,
ADD COLUMN `CustomLookActivated` tinyint NULL AFTER `CustomEntityLook`;
|
<reponame>anchaljaiswal/rest-service
insert into Student
values(10001,'Rachna', 'Female');
insert into Student
values(10002,'Ravi', 'Male'); |
<reponame>onselaydin/WebApiTest
CREATE TABLE [dbo].[Photos] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[CityId] INT NOT NULL,
[DateAdded] DATETIME2 (7) NOT NULL,
[Description] NVARCHAR (MAX) NULL,
[IsMain] BIT NOT NULL,
[Url] NVARCHAR (MA... |
drop database if exists oa;
create database oa;
use oa;
/*==============================================================*/
/* Table: claim_voucher */
/*==============================================================*/
create table claim_voucher
(
id int not... |
DROP TABLE IF EXISTS "geo";
CREATE TABLE "geo" (
"city" VARCHAR(50),
"region" VARCHAR(50),
"region_point" VARCHAR(50),
"location" POINT,
"shape" GEOMETRY
)
AS SELECT * FROM CSVREAD('classpath:/geo/geo.csv');
|
autocommit off;
create class foo1 (b int);
create class bar (c int);
insert into foo1(b) values(4);
insert into bar(c) values(1);
insert into bar(c) values(2);
select b, (select c from bar) from foo1;
rollback;
|
SELECT
(SELECT DATE_FORMAT(min(cdr_calldate), '%Y-%m-%d') FROM MainCdr) AS MinDate
, (SELECT DATE_FORMAT(MAX(cdr_calldate), '%Y-%m-%d') FROM MainCdr) AS MaxDate
, (SELECT count(*) FROM MainAudit) AS MainAudit
, (SELECT count(*) FROM MainCdr) AS MainCdr
, (SELECT count(*) FROM MainCall... |
CREATE TABLE `user` (
`id` INT NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`avatar` varchar(255) NOT NULL DEFAULT 'default.png',
`country` VARCHAR(2) NOT NULL,
`createdAt` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY... |
<reponame>Codi257/oru-innovationVI
DROP TABLE IF EXISTS Funder;
CREATE TABLE Funder(
FunderID INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT
,ProjectID INTEGER NOT NULL
,Funder INTEGER NOT NULL
,GrantID VARCHAR(30)
,StartDate DATE NOT NULL
,EndDate VARCHAR(10) NOT NULL
,DateCreated V... |
<gh_stars>0
# ************************************************************
# Sequel Pro SQL dump
# Version 4096
#
# http://www.sequelpro.com/
# http://code.google.com/p/sequel-pro/
#
# Host: 127.0.0.1 (MySQL 5.5.25)
# Database: odot
# Generation Time: 2013-05-22 11:31:53 +0000
# ****************************************... |
/*
SQLyog Ultimate v11.11 (32 bit)
MySQL - 5.5.5-10.4.13-MariaDB : Database - digsipdb
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FO... |
-- OBS: Use um banco de dados e execute para testar o sql.
create sequence cem_em_diante start with 100 increment by 1;
select nextval(cem_em_diante);
-- O valor de "100_em_diante" começa em (100) e não tem limites para finalizar ou seja não tem limite. |
CREATE SEQUENCE rating_seq;
CREATE TABLE rating
(
id BIGINT NOT NULL
CONSTRAINT ratings_pkey
PRIMARY KEY,
movie_id VARCHAR(255) NOT NULL UNIQUE,
score VARCHAR(3) NOT NULL
); |
<filename>rick_kassing_sql_queries.sql
-- Join employees with emp_no
SELECT employees.emp_no,
employees.last_name,
employees.first_name,
employees.sex,
salaries.salary
FROM employees
INNER JOIN salaries ON
employees.emp_no = salaries.emp_no;
--List first name, last name, and hire date for employees who were hi... |
<reponame>forgottenlands/ForgottenCore406<gh_stars>10-100
REVOKE ALL PRIVILEGES ON * . * FROM 'arkania'@'localhost';
REVOKE ALL PRIVILEGES ON `world` . * FROM 'arkania'@'localhost';
REVOKE GRANT OPTION ON `world` . * FROM 'arkania'@'localhost';
REVOKE ALL PRIVILEGES ON `characters` . * FROM 'arkania'@'localhost';
REVOK... |
CREATE TABLE b_socialservices_user
(
ID INT NOT NULL AUTO_INCREMENT,
LOGIN VARCHAR(100) NOT NULL,
NAME VARCHAR(100) NULL,
LAST_NAME VARCHAR(100) NULL,
EMAIL VARCHAR(100) NULL,
PERSONAL_PHOTO INT NULL,
EXTERNAL_AUTH_ID VARCHAR(100) NOT NULL,
USER_ID INT NOT NULL,
XML_ID VARCHAR(100) NOT NULL,
CAN_DELETE CHAR(1... |
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI... |
-- MySQL dump 10.13 Distrib 8.0.28, for macos11 (x86_64)
--
-- Host: 127.0.0.1 Database: food_delivery
-- ------------------------------------------------------
-- Server version 8.0.28
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS... |
<gh_stars>0
DROP TABLE DOCTOR;
DROP TABLE PATIENT;
DROP TABLE ASSIGNMENT;
|
<filename>Database/event_display.sql
DROP PROCEDURE IF EXISTS EVENT_DISPLAY ;
DELIMITER //
CREATE PROCEDURE EVENT_DISPLAY(
userId_ INT
)
BEGIN
SELECT *
FROM Event e NATURAL JOIN Assign a
WHERE e.EventId IN
(
SELECT EventId
FROM CreateEvent
WHERE UserId = userId_
);
END //
DELIM... |
<filename>scripts/oracle/migrate_3.sql
-- ORACLE database script
alter TABLE diccionario add tabnumber number(4);
alter TABLE diccionario add fieldtype number(4);
alter TABLE fichas add defaultab number(4);
ALTER TABLE diccionario DROP CONSTRAINT PK_diccionario;
ALTER TABLE diccionario ADD CONSTRAINT PK_diccionario PR... |
<gh_stars>1-10
CREATE DB @db.name@ ON '@db2.datadir@' USING CODESET UTF8 TERRITORY JP;
LIST DB DIRECTORY;
CONNECT TO @db.name@;
CREATE SCHEMA @db.username@;
GRANT DBADM ON DATABASE TO @db.username@;
|
begin
bmp.Init (300, 200, 238, 238, 204);
bmp.Ellipse(150, 100, 120, 80, 250, 100, 10);
blob_wrapper.to_file('BMP_OUT_DIR', 'test_02.bmp', bmp.AsBlob);
end;
/
|
<filename>python/sql/DropSamplesExec.sql
/*-----------------------------------------------------------------------------
* Copyright 2017, 2019, Oracle and/or its affiliates. All rights reserved.
*---------------------------------------------------------------------------*/
/*----------------------------------------... |
use cancer;
select * from cancer_cui where skipNum>0 and length(method)>0 and method != 'fullDep' and sentence not like '% or %';
select distinct method from cancer_cui;
select org_str, sentence from cancer_cui where sentence='Active gastrointestinal tract disease with malabsorption syndrome.';
select * from noncui o... |
CREATE INDEX idx_0640fc16905367702847f4e50 ON business_partners (legal_form_id);
CREATE INDEX idx_27a3d3e2dc744e624f86c42ac ON thoroughfares (address_id);
CREATE INDEX idx_27e28cee3b3c196d04d92dd16 ON localities (address_id);
CREATE INDEX idx_40c1cd3586bff0d8838b5a42f ON classifications (partner_id);
CREATE INDEX i... |
<reponame>muntaza/catatan_openaset_balangan<filename>refactoring_2020/laporan_kabupaten_108_3/kir_108/kir_108_sql/kir_108_setwan.sql
CREATE OR REPLACE VIEW view_kir_108_setwan AS
SELECT
*
FROM
view_kir_108_kabupaten
WHERE
1 = 1 AND
id_skpd = 1;
GRANT ALL PRIVILEGES ON view_kir_108_setwan TO lap_setwan;
REVOKE INSE... |
<reponame>Zhaojia2019/cubrid-testcases<filename>sql/_01_object/_08_primary_foreign_key/_001_create/cases/1032.sql
-- create a table with a primay key,create reverse index on this primary key
create table p7 (a int primary key, b int);
create reverse index ri_p7_a on p7 ( a);
select attr_name, is_nullable from db_... |
<filename>openGaussBase/testcase/KEYWORDS/Exists/Opengauss_Function_Keyword_Exists_Case0023.sql
-- @testpoint: opengauss关键字exists(非保留),作为索引名,部分测试点合理报错
--前置条件,创建一个表
drop table if exists exists_test;
create table exists_test(id int,name varchar(10));
--关键字不带引号-成功
drop index if exists exists;
create index exists on exis... |
<gh_stars>0
CREATE TABLE IF NOT EXISTS `tenant_specific_data` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`current_tenant_id` bigint(20) DEFAULT NULL,
`sample_data` varchar(255) DEFAULT NULL,
`username` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1:3306
-- Время создания: Сен 26 2017 г., 11:23
-- Версия сервера: 5.7.16
-- Версия PHP: 7.0.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ... |
CREATE VIEW inventory AS
SELECT
products.cod_prod,
products.description
FROM
products
WHERE
price < 1000;
GRANT
SELECT
ON inventory TO PUBLIC;
REVOKE
SELECT
ON shop.supplier_orders
FROM
PUBLIC;
DROP VIEW shop.supplier_orders; |
<reponame>essyp/jesus-care<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 08, 2021 at 03:43 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
... |
<reponame>mohamedndiayedev/afrioilcompany
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 26, 2021 at 02:39 PM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 7.3.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:0... |
ALTER TABLE `address` ADD `gps` VARCHAR(100) NULL COMMENT 'GPS position' AFTER `countryId`;
ALTER TABLE `town` ADD `gps` VARCHAR(100) NULL COMMENT 'GPS position' AFTER `zipCode`;
|
<filename>AppInfraDemo/UI/ConsoleApplication/AdventureWorksTestQueries/SalesOrdersHeader.sql
SELECT * FROM [Sales].[Customer] C
INNER JOIN [Person].[Person] P ON C.PersonId = P.[BusinessEntityID]
--WHERE C.CustomerID=11019
SELECT CustomerID, count(*) as Orders
FROM [Sales].[SalesOrderHeader]
GROUP BY CustomerID
S... |
/*
Warnings:
- You are about to drop the `Kit` table. If the table is not empty, all the data it contains will be lost.
- You are about to drop the `Profile` table. If the table is not empty, all the data it contains will be lost.
- You are about to drop the `Sound` table. If the table is not empty, all the da... |
USE `es_extended`;
CREATE TABLE `shops` (
`id` int NOT NULL AUTO_INCREMENT,
`store` varchar(100) NOT NULL,
`item` varchar(100) NOT NULL,
`price` int NOT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `shops` (store, item, price) VALUES
('TwentyFourSeven','bread',30),
('TwentyFourSeven','water',15),
('RobsLiquor','b... |
<filename>src/test/resources/sql/insert/2e6dbf60.sql
-- file:timestamptz.sql ln:122 expect:true
INSERT INTO TIMESTAMPTZ_TBL VALUES ('Feb 15 17:32:01 1997')
|
-- Table: intl_postcode_api_country
-- DROP TABLE intl_postcode_api_country;
CREATE TABLE intl_postcode_api_country
(
country_code text NOT NULL, -- 2 letter country code
country_name text NOT NULL, -- Full country name
currency text NOT NULL, -- Currency code
postcode_flag boolean NOT NULL, -- Does this coun... |
col machine format a20
col KILL_SESSION format a43
col OSUSER format a11
col spid format a7
select spid,PID, status,' alter system kill session '''||A.sid||','||A.serial#||''';' KILL_SESSION, osuser, machine,to_char(logon_time,'dd-mm-yyyy hh24:mi') logon_tim,MODULE A
from v$session A,v$process B
where paddr=addr
an... |
CREATE DATABASE IF NOT EXISTS `samhall` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `samhall`;
-- MySQL dump 10.13 Distrib 5.5.16, for Win32 (x86)
--
-- Host: 172.16.58.3 Database: samhall
-- ------------------------------------------------------
-- Server version 5.1.72-community
/*!40101 SET @OLD_CHARAC... |
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/RELEASE-SCRIPTS/KC-RELEASE-4_0-SCRIPT/mysql/constraints/KC_PK_COI_DISPOSITION_STATUS.sql<gh_stars>0
DELIMITER /
ALTER TABLE COI_DISPOSITION_STATUS
ADD CONSTRAINT PK_COI_DISPOSITION
PRIMARY KEY (COI_DISPOSITION_CODE)
/
DELIMITER ;
|
<gh_stars>0
ALTER TABLE CM_SP_PURPOSE_PURPOSE_CAT_ASSC ADD ID INTEGER NOT NULL AUTO_INCREMENT;
ALTER TABLE CM_SP_PURPOSE_PURPOSE_CAT_ASSC ADD PRIMARY KEY(ID);
ALTER TABLE CM_PURPOSE_PII_CAT_ASSOC ADD ID INTEGER NOT NULL AUTO_INCREMENT;
ALTER TABLE CM_PURPOSE_PII_CAT_ASSOC ADD PRIMARY KEY(ID);
ALTER TABLE CM_SP_PURPOS... |
--Tytuł: Generowanie struktury bazy danych EmployeeMedicalTest z przykładowymi danymi
--Autor: <NAME>
--Update: 13-03-2022
--Wersia: 1.2
--Sprawdzanie czy baza danych już istnieje
IF EXISTS (SELECT name FROM sys.databases WHERE name='EmployeeMedicalTest ')
DROP DATABASE EmployeeMedicalTest
GO
--Tworzenie i korzyst... |
<filename>src-gui/src/main/resources/db/import-script_29.sql<gh_stars>0
INSERT INTO "VERSION" (Version_ID, Version_Number, Version_Deployment_Date)
VALUES (29, 29, CURRENT_TIMESTAMP);
INSERT INTO "KILDA_PERMISSION" (PERMISSION_ID, PERMISSION, IS_EDITABLE, IS_ADMIN_PERMISSION, STATUS_ID, CREATED_BY, CREATED_DATE, UPDAT... |
/*
Navicat Premium Data Transfer
Source Server : luna-aliyuncs-qiaowe
Source Server Type : MySQL
Source Server Version : 50734
Source Host : 172.16.31.10:3306
Source Schema : wednesday
Target Server Type : MySQL
Target Server Version : 50734
File Encoding : 65001
Dat... |
<filename>cgfy-cloud/cgfy-user/src/main/resources/db/user_info.sql
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 80018
Source Host : localhost:3306
Source Schema : cgfy_web
Target Server Type : MySQL
Target Server ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.