sql stringlengths 6 1.05M |
|---|
<reponame>muntaza/Open_Persediaan
DROP VIEW IF EXISTS view_beban_barang5_kesbangpol CASCADE;
CREATE VIEW view_beban_barang5_kesbangpol AS
SELECT
nama_provinsi,
id_provinsi,
nama_kabupaten,
id_kabupaten,
nama_lokasi_bidang,
id_lokasi_bidang,
nama_skpd,
id_skpd,
nama_barang,
kode_barang,
satuan,
id_satuan,
jenis_... |
<reponame>mortonjt/american-gut-web<filename>amgut/lib/data_access/procedures/ag_get_barcodes_by_kit.sql
SET client_encoding TO 'UTF8';
CREATE OR REPLACE FUNCTION ag_get_barcodes_by_kit (
supplied_kit_id_ in text
, results_ refcursor
) RETURNS refcursor AS $body$
BEGIN
open results_ for
SELECT b.barcode f... |
<reponame>enlyze/pgwatch2
select
(extract(epoch from now()) * 1e9)::int8 as epoch_ns,
case
when pg_is_in_recovery() = false then
pg_wal_lsn_diff(pg_current_wal_lsn(), '0/0')::int8
else
pg_wal_lsn_diff(pg_last_wal_replay_lsn(), '0/0')::int8
end as xlog_location_b,
case when pg_is_in_recover... |
<filename>bp2/predavanja/pred27_q01_encryption.sql
--encryption
CREATE DATABASE CryptoDB
GO
USE CryptoDB
GO
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<PASSWORD>';
GO |
<filename>Atividades ate 26-07-2019/Review/Query Select.sql
select
tr.Nome as 'Turma',
a.Aluno
from Turmas tr
inner join TurmaAlunos ta on tr.Id=ta.Turma
inner join Alunos a on ta.Aluno=a.Id
--traz todos os alunos da turma
select
d.[Data], --vai dentro [] pois é uma palavra reservada
a.Aluno,
n... |
<gh_stars>0
CREATE DATABASE coupon;
\c coupon
CREATE TABLE coupons (id SERIAL PRIMARY KEY, title varchar(255),description varchar(255), product varchar(255), discount decimal, expiration date);
INSERT INTO coupons (title, description, product, discount, expiration) VALUES ('Target', 'Degergant', 'Bounty', 0.20, '199... |
<reponame>zonafets/TSQL-Utils
/* leave this
l:see LICENSE file
g:utility
k:index,optimization,statistic
v:111116.1040\s.zaglio: use mssql perf. sp to list indexes to add
*/
CREATE proc sp__maint_idxstats
@obj sysname = null
as
begin
declare @proc sysname,@ret int
select @proc=object_name(@@procid)... |
CREATE TABLE IF NOT EXISTS MetadataTest (ID VARCHAR, DATA VARCHAR, PRIMARY KEY (ID)); |
set pages 9999;
column sorts_memory format 999,999,999
column sorts_disk format 999,999,999
column ratio format .99999
select
to_char(snap_time,'yyyy-mm-dd HH24'),
sum(disk_reads) disk_reads,
sum(buffer_gets) buffer_gets,
(sum(disk_reads)/sum(buffer_gets)) ratio
from
perfstat.stats$sql_summary a,... |
<filename>Tables/dbo.TPOTChanged.sql
CREATE TABLE [dbo].[TPOTChanged]
(
[TPOTChangedPK] [int] NOT NULL IDENTITY(1, 1),
[ChangeDatetime] [datetime] NOT NULL,
[ChangeType] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[TPOTPK] [int] NOT NULL,
[AdditionalStrategiesNumUsed] [int] NULL,
[ChallengingB... |
/* REGEXP_REPLACE - cleaning blank spaces */
SELECT REGEXP_REPLACE('and in conclusion, 2/3rds of our revenue','( ){2,}', ' ') TEXT_LINE
FROM DUAL;
|
USE `portus`;
CREATE USER 'portus'@'localhost' IDENTIFIED BY '<PASSWORD>';
GRANT ALL ON `portus`.* TO 'portus'@'localhost';
REVOKE GRANT OPTION ON `portus`.* FROM 'portus'@'localhost';
FLUSH PRIVILEGES;
|
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jan 22, 2020 at 06:16 PM
-- Server version: 5.7.24
-- PHP Version: 7.3.13
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CH... |
<reponame>FoxComm/highlander
create or replace function update_inventory_transactions_view_from_stock_items_fn() returns trigger as $$
begin
update inventory_transactions_search_view set
sku = new.sku;
return null;
end;
$$ language plpgsql;
create trigger update_inventory_transactions_view_from_stock_i... |
<reponame>jsturek/UNL_MediaHub<gh_stars>1-10
/** Bring old tables up to snuff **/
ALTER TABLE users CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;
ALTER TABLE feed_has_media CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;
ALTER TABLE feed_has_nselement CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_c... |
<reponame>patcon/kalle
-- CreateEnum
CREATE TYPE "ConnectedCalendarStatus" AS ENUM ('active');
-- CreateTable
CREATE TABLE "User" (
"id" SERIAL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,
"name" TEXT NOT NULL,
"username" TEXT NOT NULL,
"email" TE... |
-- file:copy2.sql ln:318 expect:true
end $$ language plpgsql immutable
|
<filename>modules/boonex/market/updates/11.0.0_11.0.1/install/sql/install.sql
-- FORMS
UPDATE `sys_form_inputs` SET `values`='', `type`='text' WHERE `object`='bx_market' AND `name`='price_recurring';
-- PRE-VALUES
DELETE FROM `sys_form_pre_lists` WHERE `key`='bx_market_prices';
DELETE FROM `sys_form_pre_value... |
select
DiscoveryName,
MPName,
MPFriendlyName,
MPVersion,
MPIsSealed,
MPLastModified,
MPCreated,
PrincipalName
from
discovery d
join
ManagementPack MP
on MP.ManagementPackId = d.ManagementPackId
join
DiscoverySource DS
on DS.DiscoveryRuleId = d.DiscoveryId
... |
<filename>CSETWebApi/CSETWeb_Api/Database/dbo.FINDING_CONTACT.Table.sql
USE [CSETWeb]
GO
/****** Object: Table [dbo].[FINDING_CONTACT] Script Date: 11/14/2018 3:57:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[FINDING_CONTACT](
[Finding_Id] [int] NOT NULL,
[Assessment_Contact_... |
<gh_stars>10-100
CREATE TABLE IF NOT EXISTS gpkg_spatial_ref_sys (
srs_name TEXT NOT NULL,
srs_id INTEGER NOT NULL PRIMARY KEY,
organization TEXT NOT NULL,
organization_coordsys_id INTEGER NOT NULL,
definition TEXT NOT NULL,
description TEXT );
CREATE UNIQUE INDEX IF NOT EXISTS gpkg_spatial_ref_sys_i... |
<gh_stars>0
insert into `User` values(1, "LaVuna","Ivan", "Manchur","<EMAIL>","lavuna2002","90123123","photo.jpeg");
insert into `User` values(2, "Pikachu","Borys", "Laplas","<EMAIL>","laplap2002","901231233","photo.jpeg");
insert into `User` values(3, "Hulk","Ostap", "Manchur","<EMAIL>","ostap19991999","517294381","ph... |
<filename>cql/sequence.cql
CREATE KEYSPACE sequence
WITH durable_writes = true
AND replication = {
'class' : 'NetworkTopologyStrategy',
'datacenter1' : 3
};
CREATE TABLE sequence.sequence_gen (
name text,
sequence bigint,
PRIMARY KEY (name)
);
insert into sequence.sequence_gen (name, sequence) val... |
create table form_document (
id char(16) for bit data not null primary key,
rev integer not null,
created timestamp not null,
updated timestamp not null,
data blob(16M));
create table questionnaire(
id char(16) for bit data not null primary key,
rev integer not null,
created timestamp not null,
up... |
{%- macro stage(include_source_columns=none, source_model=none, hashed_columns=none, derived_columns=none, ranked_columns=none) -%}
{%- if include_source_columns is none -%}
{%- set include_source_columns = true -%}
{%- endif -%}
{{- adapter.dispatch('stage', 'dbtvault')(include_source_colum... |
<filename>Module/ModuleInfo/DB/Test/get-module-id.sql
begin
pkg_ModuleInfoTest.testGetModuleId(
findModuleString => 'Oracle/Module/ModuleInfo@711'
, moduleName => 'ModuleInfo'
, raiseExceptionFlag => 1
, searchResult => 1
);
pkg_ModuleInfoTest.testGetModuleId(
findModuleString => 'Orac... |
<reponame>IsyFact/isyfact-polling
/*
See the NOTICE file distributed with this work for additional
information regarding copyright ownership.
The Federal Office of Administration (Bundesverwaltungsamt, BVA)
licenses this file to you under the Apache License, Version 2.0 (the
License). You may not use this file exc... |
--Quotes DDL
CREATE TABLE IF NOT EXISTS QUOTES (
id INT AUTO_INCREMENT NOT NULL PRIMARY KEY,
quote VARCHAR(256) NOT NULL);
|
<reponame>juanbono/medicina-delta<gh_stars>1-10
INSERT INTO PACIENTES
(ID, NOMBRE, APELLIDO, DNI, OBRASOCIAL)
VALUES
(1, 'Juan', 'Bono', 38346926, 1),
; |
CREATE EXTERNAL TABLE `wkp_text`(
`parent_page_id` int,
`parent_revision_id` int,
`parent_header_id` int,
`text` string,
text_length int)
ROW FORMAT SERDE
'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'o... |
<reponame>informaticslab/site
-- Adding the rc_ip field for logging of IP addresses in recentchanges
ALTER TABLE /*$wgDBprefix*/recentchanges
ADD rc_ip varbinary(40) NOT NULL default '',
ADD INDEX rc_ip (rc_ip);
|
<filename>modules/flowable-variable-service/src/main/resources/org/flowable/variable/service/db/create/flowable.mssql.create.variable.history.sql
create table ACT_HI_VARINST (
ID_ nvarchar(64) not null,
REV_ int default 1,
PROC_INST_ID_ nvarchar(64),
EXECUTION_ID_ nvarchar(64),
TASK_ID_ nvarchar(64)... |
<gh_stars>0
SELECT kind, sum(len) AS total
FROM films
GROUP BY kind
HAVING sum(len) < interval '5 hours';
kind | total
----------+-------
Comedy | 02:58
Romantic | 04:38
|
-- Remove colorset references
alter table visualization drop column if exists colorsetid;
-- Remove colorset tables
drop table colorset_colors;
drop table color;
drop table colorset;
|
<reponame>SKalt/pg_sql_parser_tests<gh_stars>0
restore_command = 'cp /mnt/server/archivedir/%f %p'
|
DELETE FROM beer_types
WHERE name in ('Ale', 'Lager', 'Stout', 'Porter', 'Lambic', 'Pilsner', 'Pale Ale', 'Weissbier', 'Belgian Ale');
|
<reponame>mohamedrasvi/usermanagement
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 06, 2017 at 03:41 PM
-- Server version: 5.7.16-0ubuntu0.16.04.1
-- PHP Version: 5.6.30-7+deb.sury.org~xenial+1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SE... |
<reponame>yolachinaok/pretaLaravel
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 11-06-2019 a las 03:59:45
-- Versión del servidor: 10.1.38-MariaDB
-- Versión de PHP: 7.3.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRAN... |
DROP TABLE IF EXISTS sensor_row_int_columns;
DROP TABLE IF EXISTS sensor_row_int_column_metadata;
DROP TABLE IF EXISTS sensor_rows;
DROP TABLE IF EXISTS sensors;
-- ** ER model **
-- sensor
-- ^
-- |
-- (belongs to)
-- |
-- sensor_row
-- ... |
<reponame>jordioni1180/Kalpataru-Jorge<filename>Kalpataru-Jorge.sql
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Versión del servidor: 8.0.18 - MySQL Community Server - GPL
-- SO del servidor: Win64
-- HeidiSQL Versión: 11.3.0... |
<gh_stars>0
CREATE TABLE task_report (
id VARCHAR(50) NOT NULL,
task_id VARCHAR(50) DEFAULT NULL,
member_id VARCHAR(50) DEFAULT NULL,
draft TINYINT(1) DEFAULT 1 NOT NULL,
summary LONGTEXT NOT NULL,
plan LONGTEXT NOT NULL,
risk LONGTEXT NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
updated_a... |
DROP DATABASE IF EXISTS agpp;
CREATE DATABASE agpp;
USE agpp;
-- Parent Tables
CREATE TABLE `pengguna` (
`id_pengguna` int(11) NOT NULL,
`nama_pengguna` varchar(100) DEFAULT NULL,
`jabatan` enum('Admin','Manajer Proyek','Site Manager') DEFAULT NULL,
`email` varchar(50) DEFAULT NULL,
`kata_sandi` varchar(50)... |
INSERT INTO Confect.Store (ingredient, quantity, unit, shelfLife) VALUES ('мука', 21400, 'гр', 3660);
INSERT INTO Confect.Store (ingredient, quantity, unit, shelfLife) VALUES ('яйца', 1152, 'шт', 30);
INSERT INTO Confect.Store (ingredient, quantity, unit, shelfLife) VALUES ('молоко', 9125, 'мл', 32);
INSERT INTO Confec... |
<filename>src/ESFA.DC.Data.ILR.ValidationErrors.Database/Security/ILR1819ValidationErrors_RO_User.sql
CREATE USER [ILR1819ValidationErrors_RO_User]
WITH PASSWORD = N'$(<PASSWORD>)';
GO
GRANT CONNECT TO [ILR1819ValidationErrors_RO_User]
GO
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Oct 07, 2015 at 07:18 PM
-- Server version: 5.6.16
-- PHP Version: 5.5.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_... |
<reponame>andywahr/msta-sa-class<filename>SQL/3-CreateTable.sql
-- Run in your DB
GO
/****** Object: Table [dbo].[Products] Script Date: 12/10/2019 4:05:42 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Products](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Price] [decimal](18, 2) NOT NUL... |
<gh_stars>1-10
SET DEFINE OFF;
ALTER TABLE AFW_12_UTILS ADD (
CONSTRAINT AFW_12_UTILS_UK1
UNIQUE (CODE_UTILS)
ENABLE VALIDATE)
/
|
CREATE PROCEDURE [dbo].[AssignCourseToStudent]
@CourseId INT,
@StudentId INT
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO StudentCourses (Course_Id, Student_Id)
VALUES (@CourseId, @StudentId)
END |
<filename>pkg/database/migrations/2_cover_image.up.sql
ALTER TABLE `scenes` ADD COLUMN `cover` blob; |
<gh_stars>1-10
\c mountain_project;
ALTER TABLE routes
ADD url_id INT;
UPDATE routes
SET url_id =
CAST(
REGEXP_REPLACE (
REPLACE (url, 'https://www.mountainproject.com/route/', ''), '/(?<=/).*', ''
)
AS INT
);
|
--
-- Name: vw_hazard_wkt_view; Type: VIEW; Schema: public; Owner: -
--
CREATE OR REPLACE VIEW public.vw_hazard_wkt_view AS
SELECT hazard.id,
hazard.name,
public.st_astext(hazard.geometry) AS st_astext,
hazard.source,
hazard.reporting_date_time,
hazard.forecast_date_time,
hazard.station
FRO... |
<filename>src/test/resources/sql/select/f7025392.sql
-- file:json.sql ln:47 expect:true
SELECT repeat('{"a":', 10000)::json
|
<reponame>Martin-S-Stoller/T-SQL_SNIPPETS<gh_stars>0
/*
First steps!
Run a find and replace all on {DBAEMAIL}, for example I would use '<EMAIL>'.
Ditto, the same for {TICKETEMAIL} which is my help desk email, so in my case '<EMAIL>'.
Finally do the same with {SMTP} and replace that with whatever your SMTP i... |
<filename>sql/example/oracle/create_index.sql
alter session enable parallel dml;
alter session enable parallel ddl;
create unique index k_warehouse on warehouse(w_id) initrans 255 pctfree 30 NOLOGGING;
create unique index k_district on district(d_w_id,d_id) initrans 255 pctfree 30 NOLOGGING;
create unique index k_it... |
-- Backlog table
CREATE TABLE Backlog(
callid TEXT PRIMARY KEY,
calltype INTEGER,
timestamp INTEGER,
callbody TEXT);
CREATE INDEX ix_Backlog_timestamp ON Backlog(timestamp);
-- ConfigurationProvider table
CREATE TABLE ConfigurationProvider(
id INTEGER PRIMARY KEY AUTOINCREMENT,
category TEXT,
valuetype TE... |
-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.
PRINT N'Creating primary key [DisciplineIncident_P... |
alter table DDCT_TAG add column CONTEXT varchar(255) ;
|
UPDATE transaction_outputs
SET
spent = TRUE,
spent_tx_id = ?
WHERE
id IN (?) |
<replace with sql content>
|
CREATE TABLE NATION (
N_NATIONKEY INTEGER NOT NULL,
N_NAME CHAR(25) NOT NULL,
N_REGIONKEY INTEGER NOT NULL,
N_COMMENT VARCHAR(152)
);
|
<reponame>doug-dianomic/fledge
-- Notification log code NTFCL
DELETE from fledge.log_codes WHERE code = 'NTFCL';
|
CREATE OR REPLACE FUNCTION public.fnsclgetstations()
RETURNS text
LANGUAGE plpgsql
STABLE
AS $function$
DECLARE
stationString TEXT;
BEGIN
SELECT
INTO stationString
string_agg(
CONCAT(
'S,'
, pkstationID
, ','
, fkNetworkID
, ','
, st1."name"
, ','
, groupIDs
... |
<reponame>Zhaojia2019/cubrid-testcases
--MULTISET, Containment operators
create class test_class (col_set MULTISET datetimeltz);
insert into test_class(col_set) values ({'9999-12-31 23:59:59.999', '0001-01-01 00:00:00.000'});
insert into test_class(col_set) values ({'1900-12-31 12:30:00.888', '2000-01-01 01:01:01.111'... |
<filename>openGaussBase/testcase/SQL/INNERFUNC/Datetime/Opengauss_Function_Innerfunc_Add_Case0007.sql
-- @testpoint: 时间和日期操作符+,time与时间间隔相加
drop table if exists test_date01;
create table test_date01 (col1 time);
insert into test_date01 values ('04:59:59');
select time '04:59:59' + interval '3 hours' from test_date01;... |
<reponame>opengauss-mirror/Yat
-- @testpoint: set:psort,btree,gist不支持GIN_PENDING_LIST_LIMIT
DROP TABLE if EXISTS test_index_table_126 CASCADE;
create table test_index_table_126(
c_float1 float
) WITH (ORIENTATION = column) ;
--建psort+gist索引
drop index if exists index_126_01;
create index index_126_01 on test_index_t... |
-- MySQL dump 10.13 Distrib 5.7.24, for Win64 (x86_64)
--
-- Host: localhost Database: farmacia
-- ------------------------------------------------------
-- Server version 5.7.24
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*... |
<gh_stars>0
select *
from records;
select *
from record_insts;
select r.rcd_id,
ri.rcd_inst_id,
rcd_name,
r.type,
created_time,
modified_time,
r.derived,
t.tch_name,
t.email,
ri.content,
r.base_content,
comments
from records as r
jo... |
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 06, 2017 at 03:27 PM
-- Server version: 5.7.14
-- PHP Version: 5.6.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */... |
<filename>mysql/init/init.sql
CREATE DATABASE horse_race_app CHARACTER SET utf8mb4;
GRANT ALL ON horse_race_app.* TO develop;
|
<filename>sql/oc_setting.sql<gh_stars>0
UPDATE `oc_setting`
SET `value` = '100'
WHERE `key` = 'config_pagination_admin'; |
/* Estrutura da Tabela Estados */
DROP DATABASE IF EXISTS `aula05`;
CREATE DATABASE `aula05`;
USE `aula05`;
CREATE TABLE `tb_estados` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(250) DEFAULT NULL,
`sigla` varchar(250) DEFAULT NULL,
`tamanho` double(10,2) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE... |
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1
-- Généré le : dim. 14 nov. 2021 à 19:52
-- Version du serveur : 10.4.20-MariaDB
-- Version de PHP : 7.4.21
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SE... |
<reponame>imajaydwivedi/Problem-Task---SQL-Server-Slowness
USE [DBA]
GO
IF OBJECT_ID('dbo.usp_GetLogWalkJobHistoryAlert_Suppress') IS NULL
EXEC('CREATE PROCEDURE [dbo].[usp_GetLogWalkJobHistoryAlert_Suppress] AS SELECT 1 AS [Dummy];')
GO
ALTER PROCEDURE [dbo].[usp_GetLogWalkJobHistoryAlert_Suppress]
@p_JobName VA... |
-- domain seed
INSERT INTO
domains (name, description, rank, hashtag)
VALUES
(
'Physical Health',
'Eating, sleeping, not being chased by a bear...',
1,
'#physical'
);
-- habit seed
INSERT INTO
habits (name, description, initiation_date, domain_id)
VALUES
(
'Shop healthily',
'You are w... |
<filename>db/sql/V1.03__remove_asset_type.sql
ALTER TABLE targets DROP COLUMN type;
ALTER TABLE targets ADD CONSTRAINT unique_identifier UNIQUE(identifier);
|
<reponame>jdemeuse1204/OR-M-Data-Entities<gh_stars>1-10
Select
* From Contacts Where ID = @ID |
<filename>postgres/schema.sql
CREATE TABLE IF NOT EXISTS responses (tx_id uuid PRIMARY KEY, ts timestamp WITH time zone DEFAULT NOW(), invalid boolean DEFAULT NULL, data jsonb);
CREATE TABLE IF NOT EXISTS feedback_responses (id SERIAL PRIMARY KEY, ts timestamp WITH time zone DEFAULT NOW(), invalid boolean DEFAULT NULL,... |
<gh_stars>1-10
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 02, 2021 at 02:49 AM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 8.0.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... |
CREATE TABLE [dbo].[man_rle_mxPattern](
[rle_mxPattern_id] [int] IDENTITY(1,1) NOT NULL,
[rle_mxPattern_name] [nvarchar](50) COLLATE Latin1_General_CI_AS NOT NULL,
[rle_mxPattern_description] [nvarchar](250) COLLATE Latin1_General_CI_AS NULL,
[rle_patternType_id] [int] NOT NULL,
[rle_mxPattern_value] [nvarcha... |
create table action_plan (
id uuid not null,
referral_id uuid not null,
number_of_sessions int,
created_by_id text not null,
created_at timestamp with time zone not null,
submitted_by_id text,
submitted_at timestamp with time zone,
primary key (id),
constraint fk_referral_id foreign ... |
/*
Create a procedure Transfer, which takes three parameters, iToAID,
iFromAID, and iAmount, and transfers the given amount between the two
given accounts in a single transaction. If the amount is not available in the
iFromAID account, then the operation should be aborted (this should
happen via the trigger from #3... |
<gh_stars>1-10
CREATE TABLE IF NOT EXISTS public.ny_{{ params.countyname }} (
testdate date NOT NULL,
newpositives int4 NULL,
cummpositives int4 NULL,
totaltests int4 NULL,
cummtests int4 NULL,
loaddate date NULL
);
|
<gh_stars>10-100
-- file:rangefuncs.sql ln:599 expect:true
select * from foobar()
|
<filename>sources/src/docs/topics/code/pgjdbc/getpresandpartner.sql
-- @param president id
select * from president p
join pres_marriage pm on (p.id=pm.pres_id)
where p.id= cast( ? as integer)
|
-- 631 Proportion of people with at least one procedure_occurrence record outside a valid observation period
--
-- stratum_1: Proportion to 6 decimal places
-- stratum_2: Number of people with a record outside a valid observation period (numerator)
-- stratum_3: Number of people in procedure_occurrence (denominat... |
<filename>v2.4/Database/dbo/Data/TOcpCenterSide.sql
USE [XSDtoSQL]
GO
INSERT [dbo].[TOcpCenterSide] ([TOcpCenterSideId], [Value]) VALUES (1, N'Left')
GO
INSERT [dbo].[TOcpCenterSide] ([TOcpCenterSideId], [Value]) VALUES (2, N'Right')
GO
INSERT [dbo].[TOcpCenterSide] ([TOcpCenterSideId], [Value]) VALUES (3, N'Above')
G... |
<filename>tests/suites/2_management_mode/00_0005_management_mode_call.sql
-- TENANT1
SUDO USE TENANT 'tenant1';
SHOW USERS;
SHOW ROLES;
-- CALL admin$bootstrap_tenant
CALL admin$bootstrap_tenant('tenant1', 'test_user', '%', 'double_sha1_password', '<PASSWORD>');
SHOW USERS;
SHOW ROLES;
DROP USER 'test_user';
DROP R... |
-- created by vertabelo (http://vertabelo.com)
-- last modification date: 2017-04-24 14:12:32.991
-- tables
-- table: activity
create table flyway_test.activity (
id bigint not null AUTO_INCREMENT,
activity_number varchar(2000) not null,
avaliable bigint not null,
begintime timestamp not null,
endt... |
<reponame>cuba-labs/dash-clinic
UPDATE DASHBOARD_PERSISTENT_DASHBOARD
SET VERSION=13, CREATE_TS='2019-07-31 16:14:40.631', CREATED_BY='admin', UPDATE_TS='2019-08-08 15:05:22.523',
UPDATED_BY='admin', DELETE_TS=NULL, DELETED_BY=NULL,
DASHBOARD_MODEL='{
"title": "Test dashboard",
"code": "test-dashboard",
"... |
<filename>actor-server/actor-persist/src/main/resources/sql/migration/V20150731004315__AddGroupUserIsAdmin.sql<gh_stars>10-100
alter table group_users add column is_admin boolean default false; |
--dummy file for mig97
|
<gh_stars>0
CREATE DATABASE rwtheatre;
\c rwtheatre
CREATE TABLE movies (id SERIAL PRIMARY KEY, movie_name TEXT, omdb_id VARCHAR (20), omdb_poster TEXT, youtube TEXT, playing_now BOOLEAN, upcoming BOOLEAN, rating VARCHAR (6));
CREATE TABLE ticket_details (id SERIAL PRIMARY KEY, ticket_style TEXT, ticket_cost INTEGER... |
<reponame>YcsnVGMKgyAaKoeb/mfm
-- Create the base tables and triggers for a flat nodes storage
--
--
-- ----------------------------------------------------------------------------
-- the table for the datas
CREATE TABLE IF NOT EXISTS "Nodes"(
"id" INTEGER NOT NULL,
"label" TEXT NOT NULL, -- eg. store dirpath... |
create table if not exists customer (
id serial primary key,
name varchar(255) not null
);
|
<reponame>MarcusRosaa/e-leraning<gh_stars>0
CREATE DATABASE verzel;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE IF NOT EXISTS modules (
id UUID NOT NULL UNIQUE DEFAULT uuid_generate_v4(),
title VARCHAR NOT NULL
);
CREATE TABLE IF NOT EXISTS lessons (
id UUID NOT NULL UNIQUE DEFAULT uuid_generate_v... |
-- 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 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 24 Jan 2021 pada 14.34
-- Versi server: 10.4.16-MariaDB
-- Versi PHP: 7.4.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C... |
create table sensor_monitor_event
(
sensor_monitor_event_skey INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1, INCREMENT BY 1) PRIMARY KEY,
create_ts datetime,
start datetime ,
stop datetime
);
create table sensor_monitor_event_item
(
sensor_monitor_event_item_skey INTEGER GENERATED BY DEFAULT AS ... |
<reponame>vdergachev/old-school-stuff<filename>glavkniga/gklients/modules/core/db/update/postgres/17/170805-0-dropEmailTemplateTokenLink.sql
drop table gklients_email_template_token_link cascade ;
|
<filename>src/server/resources/queries/user/FINANCE_USER.sql
SELECT p.username as username
FROM person p, person_system_role_map role_map
WHERE p.id = role_map.person_id
AND role_map.person_system_role_id = 6
AND p.username IS NOT NULL
order by username asc
LIMIT 50 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.