text stringlengths 1 1.05M |
|---|
--
-- SQL script to prepopulate tables in the SymGENE/BioSQL database as
-- far as it is needed.
--
--
-- IMPORTANT NOTE: This script represents one of the early stages of
-- using the ontology tables to tag what is essentially
-- meta-information onto tags coming from annotation and feature
-- tables. I tried to updat... |
CREATE DATABASE IF NOT EXISTS laravel_master;
USE laravel_master;
CREATE IF NOT EXISTS TABLE users(
id int(255) auto_increment not null,
role varchar(20),
name varchar(100),
surname varchar(200),
nick varchar(100),
email varchar(255),
password va... |
INSERT INTO public.news_authors (id, news_id, author_id) VALUES (1, 1, 0);
INSERT INTO public.news_authors (id, news_id, author_id) VALUES (2, 1, 1);
INSERT INTO public.news_authors (id, news_id, author_id) VALUES (3, 2, 0);
INSERT INTO public.news_authors (id, news_id, author_id) VALUES (4, 3, 1); |
-- Put upgrade SQL here
ALTER TABLE cloud_code ADD backend_url TEXT NOT NULL DEFAULT '';
|
--
-- General section.
--
SET @sName = 'bx_en';
DELETE FROM `tll`, `tls`
USING `sys_localization_languages` AS `tll` LEFT JOIN `sys_localization_strings` AS `tls` ON `tll`.`ID`=`tls`.`IDLanguage`
WHERE `tll`.`Name`='en';
--
-- Studio page and widget.
--
DELETE FROM `tp`, `tw`, `twb`, `tpw`
USING `sy... |
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 14, 2021 at 03:40 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
create table public.tag_meta_value (
id serial,
task_id integer,
site_id integer not null,
tag_meta_id integer not null,
value text
);
alter table only public.tag_meta_value
add constraint tag_meta_value_task_id_fkey foreign key (task_id) references public.task(id);
alter table only public.tag... |
--+ holdcas on;
--bind parameter in from cluase
create class xoo ( a int);
insert into xoo values(10);
$int, $11, $int ,$22;
select ? , x.a , y.a from xoo x, ( select ? as a from xoo ) y;
$int, $11, $int ,$22;
select ? , x.a , y.a from xoo x, ( select to_char(?) as a from xoo ) y;
$int, $11, $int ,$22;
select ? , x... |
select i_item_id
,i_item_desc
,i_current_price
from item, inventory, date_dim, store_sales
where i_current_price between 30 and 30+30
and inv_item_sk = i_item_sk
and d_date_sk=inv_date_sk
and d_date between '2002-05-30' and '2002-07-30'
and i_manufact_id in (437,129,727,663)
and inv_quantity_on_ha... |
ALTER TABLE group_x_user DROP FOREIGN KEY group_x_user_ibfk_1;
ALTER TABLE group_x_user MODIFY user_id INT;
ALTER TABLE tg_user MODIFY chat_id INT;
ALTER TABLE group_x_user ADD CONSTRAINT group_x_user_ibfk_1 FOREIGN KEY (user_id) REFERENCES tg_user(chat_id);
|
CREATE TABLE departments (
dept_no VARCHAR,
dept_name VARCHAR
);
SELECT * FROM departments;
CREATE TABLE dept_emp (
emp_no VARCHAR,
dept_no VARCHAR
);
SELECT * FROM dept_emp;
CREATE TABLE dept_manager (
dept_no VARCHAR,
emp_no VARCHAR
);
SELECT * FROM dept_manager;
CREATE TABLE employees(
emp_no VARCH... |
CREATE TABLE scm_vital_sign(
seq BIGINT AUTO_INCREMENT PRIMARY KEY,
/**
* type: org.kyojo.schemaorg.m3n3.core.Container$AdditionalType
* param: org.kyojo.schemaorg.m3n3.core.Clazz$URL
*/
additional_type VARCHAR(100) NULL,
/**
* type: org.kyojo.schemaorg.m3n3.core.Container$AlternateName
* param: org.k... |
select concept_hierarchy.concept_id,
isNull(concept_hierarchy.soc_concept_name,'NA') + '||' + isNull(concept_hierarchy.hlgt_concept_name,'NA') + '||' + isNull(concept_hierarchy.hlt_concept_name,'NA') + '||' + isNull(concept_hierarchy.pt_concept_name,'NA') + '||' + isNull(concept_hierarchy.snomed_concept_name,'NA') c... |
CREATE TABLE [Account] (
[AccountID] int identity(0,1) PRIMARY KEY,
[FirstName] nvarchar(100),
[Mail] varchar(100),
[Password] nvarchar(500),
);
CREATE INDEX [U] ON [Account] ([Mail]);
CREATE TABLE [PasswordReset] (
[PasswordID] int identity(0,1) PRIMARY KEY,
[AccountID] int FOREIGN KEY REFERENCES [Accoun... |
prompt --application/shared_components/user_interface/templates/label/required_floating
begin
-- Manifest
-- LABEL TEMPLATE: REQUIRED_FLOATING
-- Manifest End
wwv_flow_api.component_begin (
p_version_yyyy_mm_dd=>'2021.04.15'
,p_release=>'21.1.7'
,p_default_workspace_id=>9690978936188613
,p_default_application_... |
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS "Tasks" (
task_id INTEGER NOT NULL,
"desc" VARCHAR NOT NULL,
first_scope VARCHAR(20) NOT NULL,
category VARCHAR,
created_at DATETIME,
resolution VARCHAR,
parent_id INTEGER,
time_estimate FLOAT,
time_actual FLOAT,
PRIMARY KEY (task... |
----------------------------
-- Copyright (C) 2021 CARTO
----------------------------
CREATE OR REPLACE FUNCTION @@RS_PREFIX@@quadkey.VERSION
()
RETURNS VARCHAR
IMMUTABLE
AS $$
from @@RS_PREFIX@@quadkeyLib import __version__
return __version__
$$ LANGUAGE plpythonu; |
CREATE TABLE `PasteFile` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`filename` varchar(5000) NOT NULL,
`filehash` varchar(128) NOT NULL,
`filemd5` varchar(128) NOT NULL,
`uploadTime` datetime NOT NULL,
`mimetype` varchar(256) NOT NULL,
`symlink` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin,
`size` int(1... |
CREATE TABLE IF NOT EXISTS `posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(250) NOT NULL,
`shortname` varchar(250) NOT NULL,
`postcontent` text NOT NULL,
`publishdate` int(11) NOT NULL,
`lastedited` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; |
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: May 03, 2020 at 12:28 PM
-- Server version: 10.4.10-MariaDB
-- PHP Version: 7.4.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET... |
-- backup.test
--
-- execsql {
-- PRAGMA page_size = 4096;
-- CREATE TABLE t2(a, b);
-- INSERT INTO t2 VALUES(3, 4);
-- }
PRAGMA page_size = 4096;
CREATE TABLE t2(a, b);
INSERT INTO t2 VALUES(3, 4); |
SELECT b1.name,
count(*)
FROM site AS s,
so_user AS u1,
tag AS t1,
tag_question AS tq1,
question AS q1,
badge AS b1,
account AS acc
WHERE s.site_id = u1.site_id
AND s.site_id = b1.site_id
AND s.site_id = t1.site_id
AND s.site_id = tq1.site_id
AND s.site_id = q1.site_id
AND... |
---- ALTER TABLE ... CHANGE COLUMN , type change
-- constraints : no constraints
-- ordering : no order defined
-- name : same name
-- type : DATE
set system parameters 'allow_truncated_string=yes';
set system parameters 'alter_table_change_type_strict=yes';
-------------- DATE 1 : to varchar, prec to small
create ... |
autocommit off;
create class z (c int);
create class w (b int);
create class x (a w);
select x.a{y}.b
from x, (select c from z) as y(b);
drop x,w,z;
rollback;
|
select
(select
1
from
foo
)
|
-- PCT22A. GROUP QUARTERS POPULATION BY SEX BY GROUP QUARTERS TYPE FOR THE POPULATION 18 YEARS AND OVER (WHITE ALONE)
-- designed to work with the IRE Census bulk data exports
-- see http://census.ire.org/data/bulkdata.html
CREATE TABLE ire_pct22a (
geoid VARCHAR(11) NOT NULL,
sumlev VARCHAR(3) NOT NULL,
state VA... |
DROP DATABASE IF EXISTS brew_review_db;
CREATE DATABASE brew_review_db;
USE brew_review_db; |
-- 2018-10-15T11:23:10.611
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ SELECT public.db_alter_table('AD_Element_Trl','ALTER TABLE public.AD_Element_Trl ADD COLUMN CommitWarning VARCHAR(1000)')
;
|
CREATE TABLE JOB_LIST_TABLE
(
SEQ_ID_JOB FLOAT NOT NULL,
SEQ_ID_MEMBER FLOAT NOT NULL
);
CREATE TABLE JOB_TABLE
(
JOB_NAME TEXT NOT NULL,
SEQ_ID_JOB FLOAT NOT NULL,
PRIMARY KEY (SEQ_ID_JOB)
);
CREATE TABLE MEMBER_TABLE
(
MEMBER_NAME TEXT NOT NULL,
SEQ_ID_MEMBER FLOAT NOT NULL,
SEQ_ID_JOB ... |
{% macro tx_gaps(
model
) %}
WITH block_base AS (
SELECT
block_number,
tx_count
FROM
{{ ref('silver__blocks') }}
),
model_name AS (
SELECT
block_number,
COUNT(
DISTINCT tx_hash
) AS mo... |
-- phpMyAdmin SQL Dump
-- version 4.0.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jun 10, 2014 at 05:58 AM
-- Server version: 5.6.12-log
-- PHP Version: 5.4.16
-- Created by Najmus Seemab
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CL... |
CREATE INDEX IF NOT EXISTS i1 ON t1 (a,b) ;
|
CREATE TABLE [dbo].[Suppliers] (
[SupplierID] INT IDENTITY (1, 1) NOT NULL,
[CompanyName] NVARCHAR (40) NOT NULL,
[ContactName] NVARCHAR (30) NOT NULL,
[ContactTitle] NVARCHAR (30) NULL,
[Email] NVARCHAR (50) NOT NULL,
[AddressID] INT NOT NULL,
[Phone] ... |
-- This file should undo anything in `up.sql`
ALTER TABLE raids
DROP COLUMN tier_id;
DROP TABLE tiers;
|
CREATE TABLE `tb_qxifuytosb` (
`col_xxcylzlczf` blob(2724000156),
`col_sanwlcnfin` time NULL,
`col_qxmjojclfy` bit(56) NULL,
`col_uzjeazqmyh` mediumblob,
UNIQUE `col_xxcylzlczf` (`col_xxcylzlczf`(10)),
UNIQUE `col_xxcylzlczf_2` (`col_xxcylzlczf`(4),`col_uzjeazqmyh`(4))
) DEFAULT CHARSET=latin1;
CREATE TABLE... |
DROP TABLE IF EXISTS t CASCADE;
CREATE TABLE t AS (
SELECT CASE WHEN (random()<0.5) THEN true ELSE false END AS active
FROM generate_series(1,100)
);
CREATE INDEX t_active_idx ON t (active) WHERE active;
CREATE INDEX t_idx1 ON t (active);
-- UPDATE pg_class SET reltuples=0 WHERE relname='t_active_idx' OR relname='... |
SELECT town_id, name FROM `towns`
WHERE name LIKE "M%" OR
name LIKE "K%" OR
name LIKE "B%" OR
name LIKE "E%"
ORDER BY name ASC; |
SELECT toStartOfDay(toDateTime('2017-12-31 00:00:00', 'UTC'), ''); -- {serverError 43}
SELECT toStartOfDay(toDateTime('2017-12-31 03:45:00', 'UTC'), 'UTC'); -- success
SELECT toStartOfMonth(toDateTime('2017-12-31 00:00:00', 'UTC'), ''); -- {serverError 43}
SELECT toStartOfMonth(toDateTime('2017-12-31 00:00:00', 'UTC')... |
INSERT INTO fraud.fraud_payment
(timestamp, eventTime, eventTimeHour, partyId, shopId, email, fingerprint, amount, currency, status, id,
ip, bin, maskedPan, paymentTool, cardToken, paymentSystem, terminal, providerId, bankCountry, fraudType, comment)
VALUES ('2020-05-06', 1588761208, 1588759200000, 'group_1', '2035728... |
SELECT b1.name,
count(*)
FROM site AS s,
so_user AS u1,
tag AS t1,
tag_question AS tq1,
question AS q1,
badge AS b1,
account AS acc
WHERE s.site_id = u1.site_id
AND s.site_id = b1.site_id
AND s.site_id = t1.site_id
AND s.site_id = tq1.site_id
AND s.site_id = q1.site_id
AND... |
-- file:updatable_views.sql ln:918 expect:true
SELECT table_name, is_insertable_into
FROM information_schema.tables
WHERE table_name = 'rw_view2'
|
--
-- OpenAPI Petstore.
-- Prepared SQL queries for 'Category' definition.
--
--
-- SELECT template for table `Category`
--
SELECT `id`, `name` FROM `Category` WHERE 1;
--
-- INSERT template for table `Category`
--
INSERT INTO `Category`(`id`, `name`) VALUES (?, ?);
--
-- UPDATE template for table `Category`
--
UPD... |
select emp_id, lname,pub_name
from employee e join publishers p
on e.pub_id = p.pub_id
order by e.lname
|
--As account admin
CREATE or replace STORAGE INTEGRATION s3_int
TYPE = EXTERNAL_STAGE
STORAGE_PROVIDER = S3
ENABLED = TRUE
STORAGE_AWS_ROLE_ARN = 'arn:aws:iam::026614366959:role/mysnowflakerole'
STORAGE_ALLOWED_LOCATIONS = ('s3://s3convex', 's3://s3convex/test');
|
#
# Copyright 2017 Amazon.com
#
# 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 of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... |
DROP TABLE IF EXISTS users CASCADE;
DROP TABLE IF EXISTS lots CASCADE;
DROP TABLE IF EXISTS images CASCADE;
DROP TABLE IF EXISTS leases CASCADE;
DROP TABLE IF EXISTS messages CASCADE;
CREATE TABLE users
(
id SERIAL PRIMARY KEY NOT NULL,
first_name VARCHAR(255) NOT NULL,
last_name VARCHAR(255) NOT NULL,
userna... |
/*
Navicat MySQL Data Transfer
Source Server : localhost3306
Source Server Version : 50612
Source Host : localhost:3306
Source Database : shidayeshi
Target Server Type : MYSQL
Target Server Version : 50612
File Encoding : 65001
Date: 2015-07-21 11:08:06
*/
SET FOREIGN_KEY_CHECKS=0... |
--liquibase formatted sql
--changeset PADMA:3
CREATE TABLE title
(
id serial NOT NULL,
original_title character varying(200),
english_translation character varying(200),
english_transliteration character varying(200),
category_id integer,
CONSTRAINT umbrella_title_pkey PRIMARY KEY (id),
CONSTRAINT title_... |
-- Create Country
CREATE TABLE IF NOT EXISTS `country` (
`id` INT(3) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`name` VARCHAR(60) NOT NULL,
`iso_code` CHAR(5) NOT NULL,
`un_code` CHAR(5) NOT NULL,
`un_num` CHAR(5) NOT NULL,
`dialing_code` CHAR(5) NOT NULL,
UNIQUE(`name`),
UNIQUE(`iso_code`),
UNIQUE(`un_code`),
UN... |
-- 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... |
--SELECT "SalariesFrance_6"."ROME" AS "ROME", "SalariesFrance_6"."ROME_LIB" AS "ROME_LIB", MIN("SalariesFrance_6"."CODGEO_PRINCIPAL") AS "min:CODGEO_PRINCIPAL:nk", SUM("SalariesFrance_6"."EMPSAL_NP1") AS "sum:EMPSAL_NP1:ok" FROM "SalariesFrance_6" GROUP BY 1, 2 HAVING (SUM("SalariesFrance_6"."EMPSAL_NP1") >= '0... |
CREATE TABLE `user` (
`user_id` int(10) NOT NULL AUTO_INCREMENT ,
`username` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' ,
`pass` char(32) NOT NULL DEFAULT '' ,
`email` varchar(255) NOT NULL DEFAULT '' ,
PRIMARY KEY (`user_id`)
);
INSERT INTO user (username,pass,email) values('james',m... |
DROP TABLE labels;
DROP TABLE articles;
DROP TABLE articles_labels;
|
CREATE DATABASE reactivecomp_db;
CREATE USER reactivecomp_user WITH PASSWORD 'reactivecomp_pwd';
GRANT ALL PRIVILEGES ON DATABASE reactivecomp_db TO reactivecomp_user;
-- Connect to the database: \connect reactivecomp_db;
CREATE TABLE galaxy(id serial PRIMARY KEY, name VARCHAR(100), description VARCHAR(3000));
GRANT ... |
create or replace function update_carts_view_from_billing_addresses_fn() returns trigger as $$
declare cord_refs text[];
begin
case tg_table_name
when 'order_payments' then
cord_refs := array_agg(new.cord_ref);
when 'credit_cards' then
select array_agg(op.cord_ref) into strict cord_refs
from... |
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64)
--
-- Host: localhost Database: webdelivery
-- ------------------------------------------------------
-- Server version 5.7.13-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ... |
CREATE TABLE IF NOT EXISTS customer
( username VARCHAR(64) PRIMARY KEY
, password CHAR(41)
, email VARCHAR(64)
, first_name VARCHAR(64)
, last_name VARCHAR(64) NOT NULL
, middle_initial VARCHAR(1)
, date_of_birth DATE
, loyalty_points INT(10)
, one_click_buying BOOLEAN
, prime_member BOOLEAN
, phone_area_code INT(3)
... |
select name
from Employee
where salary > 2000 and months < 10
order by employee_id asc; |
-- Table Script
CREATE TABLE COMM_MEMBER_ROLES (
COMM_MEMBER_ROLES_ID NUMBER(12,0) NOT NULL,
COMM_MEMBERSHIPS_ID NUMBER(12,0) NOT NULL,
MEMBERSHIP_ID VARCHAR2(10) NOT NULL,
SEQUENCE_NUMBER NUMBER(4,0) NOT NULL,
MEMBERSHIP_ROLE_CODE VARCHAR2(3) NOT NULL,
START_DATE DATE NOT NULL,
END_D... |
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Eduardo Madrigal Marin
-- Create date:
-- Description: updates MoratoryInterest and ChangeLog
-- =============================================
CREATE OR ALTER PROCEDURE dbo.SP_B_updateMoratoryInterestCC
@in... |
\c cakemix;
BEGIN;
CREATE TABLE IF NOT EXISTS username(uuid TEXT PRIMARY KEY, username TEXT UNIQUE NOT NULL);
CREATE TABLE IF NOT EXISTS auth(
uuid TEXT PRIMARY KEY,
email TEXT UNIQUE NOT NULL,
password TEXT NOT NULL,
salt TEXT NOT NULL,
FOREIGN KEY (uuid) REFERENCES username(uuid)
);
CREATE TABLE IF NOT EXIS... |
-- Verify nz-buildings:buildings_bulk_load/functions/supplied_outlines on pg
BEGIN;
SELECT has_function_privilege('buildings_bulk_load.supplied_outlines_insert(integer, integer, geometry)', 'execute');
ROLLBACK;
|
-- @testpoint:openGauss关键字range(非保留),同时作为表名和列名带引号,建表成功
drop table if exists "range";
create table "range"(
c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer,
c_real real, c_double real,
c_decimal decimal(38), c_number number(38), c_numeric numeric(38),
c_char char(50) default nul... |
-- -----------------------------------------------------
-- Table `prod`.`data_keywords`
-- Keywords that describes a dataset.
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `prod`.`data_keywords` (
`data_id` BIGINT(20) NOT NULL,
`keyword` VARCHAR(255) NOT NULL,
PRIM... |
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 06, 2022 at 10:22 PM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 7.4.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
-- randexpr1.test
--
-- db eval {SELECT (e)+case when t1.a>e then t1.f else t1.b+case when b between coalesce((select max(t1.d-~(abs(a)/abs(c))+t1.c) from t1 where f in (select -min(t1.f)-+cast(avg(e) AS integer) from t1 union select -(cast(avg(13) AS integer)) from t1) and f<=a and not exists(select 1 from t1 where... |
-- uniCenta oPOS - Touch Friendly Point Of Sale
-- Copyright (C) 2009-2015 uniCenta
-- http://www.unicenta.net
--
-- This file is part of uniCenta oPOS.
--
-- uniCenta oPOS is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-... |
SELECT COUNT(*)
FROM site AS s,
so_user AS u1,
tag AS t1,
tag_question AS tq1,
question AS q1,
badge AS b1,
account AS acc
WHERE s.site_id = u1.site_id
AND s.site_id = b1.site_id
AND s.site_id = t1.site_id
AND s.site_id = tq1.site_id
AND s.site_id = q1.site_id
AND t1.id = tq1.tag... |
with ads_insights as (
select *
from {{ref('fb_ads_insights')}}
)
select
account_name,
campaign_name,
adset_name,
ad_name,
-- The start of the month this report is for
to_char(MIN(insights_date), 'YYYY-MM') as month,
date_trunc('month', MIN(insights_date))::date as month_start,
-- Genera... |
-- If PrimaryPlaceOfPerformanceCongressionalDistrict is not provided, a 9 digit PrimaryPlaceOfPerformanceZIP+4 must be
-- provided
-- Only applies to domestic PPoP (PPoPCountry Code = USA)
SELECT
row_number,
place_of_performance_congr,
place_of_performance_zip4a,
place_of_perform_country_c
FROM detached... |
ALTER TABLE "public"."mandataires" DROP COLUMN "last_update";
|
-- MySQL dump 10.13 Distrib 8.0.13, for macos10.14 (x86_64)
--
-- Host: localhost Database: ssm_crud
-- ------------------------------------------------------
-- Server version 8.0.13
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1:3306
-- Généré le : mer. 06 jan. 2021 à 11:13
-- Version du serveur : 5.7.31
-- Version de PHP : 7.4.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CL... |
--
-- Copyright 2021 The Android Open Source Project
--
-- 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 of the License at
--
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applica... |
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 20 Apr 2021 pada 12.13
-- Versi server: 10.4.14-MariaDB
-- Versi PHP: 7.2.34
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C... |
SELECT 'Upgrading MetaStore schema from 2.3.0 to 3.0.0';
--\i 040-HIVE-16556.postgres.sql;
CREATE TABLE "METASTORE_DB_PROPERTIES"
(
"PROPERTY_KEY" VARCHAR(255) NOT NULL,
"PROPERTY_VALUE" VARCHAR(1000) NOT NULL,
"DESCRIPTION" VARCHAR(1000)
);
ALTER TABLE ONLY "METASTORE_DB_PROPERTIES"
ADD CONSTRAINT "PROPERTY_... |
DROP TABLE if EXISTS feedback_request_questions;
CREATE TABLE feedback_request_questions(
id varchar PRIMARY KEY,
requestId varchar references feedback_requests(id),
questionContent varchar,
orderNum smallint
); |
DELETE FROM autocredit
WHERE id = $1
RETURNING *
; |
-- file:triggers.sql ln:1123 expect:true
create or replace function parent_del_func()
returns trigger language plpgsql as
$$
begin
delete from child where aid = old.aid
|
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 19, 2021 at 03:15 AM
-- Server version: 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";
/*!40101 SET @OLD... |
DROP TABLE IF EXISTS `Error`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Error` (
`ErrorId` bigint NOT NULL UNIQUE
, `Level` smallint NOT NULL
, `SeqId` bigint NOT NULL
, `LeftRank` bigint NOT NULL
, `Rig... |
ALTER TABLE `campaign` ADD `compress_html` TINYINT(1) NOT NULL DEFAULT '0'; |
CREATE OR REPLACE VIEW v_volunteer_coordinator AS
SELECT
p.vanid AS vanid,
CONCAT(IFNULL(p.nickname, p.fname), ' ', p.lname) AS name,
r0.PCP AS pcp,
r0.NL AS nl,
r0.VOL AS vol,
c.comment AS comment,
p.primary_phone AS phone,
p.primary_email AS email,
a.residential_address AS address... |
ALTER TABLE videos ADD COLUMN transcoded bool DEFAULT false;
|
-- @author prabhd
-- @created 2014-04-01 12:00:00
-- @modified 2012-04-01 12:00:00
-- @tags dml MPP-21090 ORCA
-- @optimizer_mode on
-- @description Tests for MPP-21090
\echo --start_ignore
set gp_enable_column_oriented_table=on;
\echo --end_ignore
DROP TABLE IF EXISTS mpp21090_drop_distcol_dml_boolean;
CREATE TABLE ... |
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 09, 2021 at 03:53 PM
-- 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... |
-- MySQL Script generated by MySQL Workbench
-- Sat 05 Dec 2015 07:02:05 PM CET
-- Model: New Model Version: 1.0
-- 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_M... |
/*L
Copyright SAIC
Copyright SAIC-Frederick
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/camod/LICENSE.txt for details.
L*/
-- Update the roles for a test user (ran on all tiers except prod)
Delete from PARTY_ROLE pr
where pr.PARTY_ID = '50057228';
com... |
-- Table Definition ----------------------------------------------
DROP TABLE IF EXISTS followers_ids ;
CREATE TABLE followers_ids (
-- incrementing id
id SERIAL PRIMARY KEY,
-- twitter user whose follower
u_screen_name text,
-- followers id
f_id_str text,
-- row information
created... |
Id Ref_Name Ret_Reason Change_To Ret_Remedy Effective
fri Western Frisian C fry 2007-02-01
auv Auvergnat M oci 2007-03-14
gsc Gascon M oci 2007-03-14
lms Limousin M oci 2007-03-14
lnc Languedocien M oci 2007-03-14
prv Provençal M oci 2007-03-14
amd Amapá Creole N 2007-07-18
bgh Bogan D bbh 2007-07-18
... |
1 37 1 0 9.99994 5.00270 analysis 2020-05-05 13:55:59
2 37 2 0 9.99994 5.00270 analysis 2020-05-05 13:55:59
3 37 3 0 9.99993 5.00270 analysis 2020-05-05 13:55:59
4 37 4 0 9.99994 5.00270 analysis 2020-05-05 13:55:59
5 37 5 0 9.99994 5.00270 analysis 2020-05-05 13:55:59
6 37 6 0 9.99993 5.00270 analysis 2020... |
CREATE TABLE IF NOT EXISTS `Reddit`.`Comments` (`ID` VARCHAR(45) NOT NULL, `name` VARCHAR(45) NULL,`parentID` VARCHAR(45) NULL,`body` VARCHAR(10000) NULL,`ups` INT NULL,`downs` INT NULL,`created` INT NULL,`conttiversiality` INT NULL,`Archived` BOOLEAN NULL,`USER` VARCHAR(128) NULL,`SUBREDDIT` VARCHAR(128) NULL,`LinkID`... |
/*
Copyright 2016-2021 Pnoker. 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 of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ... |
-- CreateTable
CREATE TABLE "Show" (
"id" TEXT NOT NULL DEFAULT ulid_generate(),
"title" TEXT NOT NULL,
"summary" TEXT,
"picture" TEXT,
"content" JSONB,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,
PRIMARY KEY ("id")
);
|
DROP TABLE IF EXISTS {{ index .Options "Namespace" }}audit_log_entries; |
SELECT
/*%expand*/*
FROM
roles
WHERE
deleted_at IS NULL
/*%if role.id != null */
AND role_id = /* role.id */1
/*%end*/
/*%if role.roleKey != null */
AND role_key = /* role.roleKey */'user.editUser'
/*%end*/
LIMIT
1
|
UPDATE KRCR_PARM_T SET VAL = 'default.htm?turl=Documents/fundingsource.htm'
WHERE APPL_ID = 'KC' AND CMPNT_CD = 'Document' AND NMSPC_CD = 'KC-SUBAWARD' AND PARM_NM = 'subAwardFundingSourceHelpUrl' AND PARM_TYP_CD = 'HELP'
/
|
Create Schema ccw2;
GO
Create Table ccw2.Products(
ID int Not Null Primary Key Identity,
Name Varchar(20) Not Null,
Price Money Not Null
);
Create Table ccw2.Customers(
ID int Not Null Primary Key Identity,
FirstName VarChar(20) Not Null,
LastName VarChar(20) Not Null,
CardNumber Int
);
Create Table ccw2.Orde... |
CREATE TABLE customer (
id uuid PRIMARY KEY,
name character varying(255) NOT NULL,
document_id integer NOT NULL
);
CREATE TABLE account (
id uuid PRIMARY KEY,
iban character varying(255) UNIQUE,
branch_number smallint NOT NULL,
number integer NOT NULL,
type character varying(255) NOT NU... |
/*
SQLyog Ultimate v8.55
MySQL - 5.5.54 : Database - drivegreen_db
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.