sql
stringlengths
6
1.05M
SELECT * FROM warning_tpls_transcludes JOIN pages ON warning_tpls_transcludes.page_id = pages.id JOIN timecheck ON timecheck.page_id = pages.id LEFT OUTER JOIN refs USING (page_id) WHERE refs.page_id IS NULL SELECT * FROM pages LEFT OUTER JOIN warning_tpls_transcludes ON pages.id = warning_tpls_transcludes.page_id LEF...
<filename>migrations/2-create-sprints.sql CREATE TABLE sprints( id INTEGER PRIMARY KEY );
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 30-04-2019 a las 02:28:14 -- Versión del servidor: 10.1.38-MariaDB -- Versión de PHP: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
<gh_stars>1-10 USE [VipunenTK_SA] GO /****** Object: View [dbo].[v_sa_2_8_Korkeakoulut_opiskelijat] Script Date: 10.1.2022 11:54:14 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER VIEW [dbo].[v_sa_2_8_Korkeakoulut_opiskelijat] AS -- truncate table vipunentk_dw..sa_2_8_Korkeakoulut_opiskelijat --...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'auth' AND TABLE_NAME = 'ClientProperties') CREATE TABLE [auth].[ClientProperties]( [Id] [int] IDENTITY(1,1) NOT NULL, [ClientId] [int] NOT NULL, [Key] [nvarchar](200) NOT NULL, [Value] [nv...
CREATE OR REPLACE VIEW v_post AS (SELECT E.*, IFNULL(F.like_cnt, 0) AS like_cnt FROM (SELECT C.*, IFNULL(D.comment_cnt, 0) AS comment_cnt FROM (SELECT A.post_id, IF(A.post_anony=0, A.user_id, "익명") AS user_id, A.post_title, A.post_content, post_view, post_date, post_anony, post_secret, post_url_link, post_url_img, IF(A...
CREATE TABLE [Application].[DeliveryMethods_Archive] ( [DeliveryMethodID] INT NOT NULL, [DeliveryMethodName] NVARCHAR (50) NOT NULL, [LastEditedBy] INT NOT NULL, [ValidFrom] DATETIME2 (7) NOT NULL, [ValidTo] DATETIME2 (7) NOT NULL ) ON [USERDATA]; G...
<gh_stars>1-10 CREATE OR REPLACE PACKAGE "ORACLE_TOOLS"."PKG_DDL_ERROR" IS -- The error_code is an integer in the range -20000..-20999 and the message is a character string of at most 2048 bytes. /* EXCEPTIONS */ c_schema_does_not_exist constant integer := -20100; e_schema_does_not_exist exception; prag...
<reponame>ryanmaclean/treasure-boxes<filename>machine-learning-box/sentiment-analysis/queries/shuffle.sql select rowid() as rowid , sentence , sentiment , polarity from ${source} CLUSTER BY rand(43) ;
-- 2021-07-14T17:33:08.662Z -- URL zum Konzept INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsNotifyUserAfterExecution,IsOneInstanceOnly,IsReport,IsTran...
/* Navicat MySQL Data Transfer Source Server : LOCAL Source Server Version : 50553 Source Host : localhost:3306 Source Database : mess Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2017-11-10 19:33:48 */ SET FOREIGN_KEY_CHECKS=0; -- --------...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50729 Source Host : localhost:3306 Source Schema : actionsys Target Server Type : MySQL Target Server Version : 50729 File Encoding : 65001 Date: 13/07/2020 ...
<gh_stars>1-10 ALTER TABLE application_configs ADD created_timestamp TIMESTAMP; UPDATE application_configs SET created_timestamp = to_timestamp(data ->> 'lastChanged'::text, 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"') WHERE created_timestamp IS NULL;
{% macro page_views_model_sql() %} with events as ( select * from {{ source('snowplow','event') }} {{ lambda_filter(column_name = 'collector_tstamp') }} ), page_views as ( select domain_sessionid as session_id, domain_userid as anonymous_user_id, ...
<filename>macros/print_profile_schema.sql {% macro print_profile_schema(relation=none, relation_name=none, schema=none, database=none, model_description="", column_description="") %} {%- set column_dicts = [] -%} {%- set results = dbt_profiler.get_profile_table(relation=relation, relation_name=relation_name, schema=sc...
/* Navicat MySQL Data Transfer Source Server : localhost-3306 Source Server Version : 50505 Source Host : 127.0.0.1:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2019-08-01 23:12:31 */ SET FOREIGN_KEY_CHECKS=0; --...
ALTER TABLE queue_stage ADD COLUMN operation text default 'add'; ALTER TABLE queue_stage ALTER COLUMN payload DROP NOT NULL;
-- @testpoint: interval分区,不支持全局临时表,合理报错 drop table if exists partiton_table_001; create global temporary table partiton_table_001( col_1 smallint, col_2 char(30), col_3 int, col_4 date not null, col_5 boolean, col_6 nchar(30), col_7 float ) partition by range (col_4) interval ('1 month') ( partition partiton_table_00...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 05, 2021 at 02:40 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
# Host: localhost (Version 5.5.5-10.1.26-MariaDB) # Date: 2019-11-07 11:25:46 # Generator: MySQL-Front 6.1 (Build 1.16) # # Structure for table "activities" # DROP TABLE IF EXISTS `activities`; CREATE TABLE `activities` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `f_year` char(9) COLLATE utf8mb4_unico...
SET @MenuID = (Select MAX(menuid) FROM gossip_menu_option); -- EXEMPLE DE MENU AVEC AUCUNE SOUS CATEGORIES INSERT INTO `gossip_menu_option` (menuid, optionid, optionicon, optiontext, optiontype, optionnpcflag, actionmenuid) VALUES (@MenuID, 0, 0, 'Emplacement I', 1, 1, @MenuID), (@MenuID, 1, 0, 'Emplacement II', 1,...
/* Navicat MySQL Data Transfer Source Server : Localhost Source Server Version : 50505 Source Host : localhost:3306 Source Database : zilliqa-2019 Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2019-10-10 12:28:05 */ SET FOREIGN_KEY_CHECKS=0; ...
-- -------------------------------------------------------- -- Servidor: 127.0.0.1 -- Versão do servidor: 10.4.21-MariaDB - mariadb.org binary distribution -- OS do Servidor: Win64 -- HeidiSQL Versão: 11.3.0.6295 -- -----------------------------------------------...
INSERT INTO `us-house` (`state_name`, `state_name_slug`, `state_code`, `state_code_slug`, `district`, `at_large`, `vacant`, `bioguide`, `thomas`, `opensecrets`, `votesmart`, `fec`, `maplight`, `wikidata`, `google_entity_id`, `title`, `party`, `name`, `name_slug`, `first_name`, `middle_name`, `last_name`, `name_suffix`,...
DROP DATABASE IF EXISTS inventory; CREATE DATABASE inventory; USE inventory; DROP TABLE Specimen; DROP TABLE Patient; DROP TABLE Pathologist; DROP TABLE Conditions; DROP TABLE Type; DROP SEQUENCE Specimen_seq; DROP SEQUENCE Patient_seq; DROP SEQUENCE Pathologist_seq; DROP SEQUENCE Conditions_seq; DROP SEQUENCE Type_s...
<gh_stars>0 CREATE PROCEDURE [dbo].[uspUserOrganizationUpdate] @UserOrganizationID UNIQUEIDENTIFIER, @UserID UNIQUEIDENTIFIER, @OrganizationID UNIQUEIDENTIFIER, @MemberStatus TINYINT, @Deleted BIT, @DeletedBy UNIQUEIDENTIFIER, @DeletedOn D...
/* Warnings: - You are about to drop the column `isUsing` on the `Session` table. All the data in the column will be lost. - You are about to drop the `_SessionToUser` table. If the table is not empty, all the data it contains will be lost. - Added the required column `updatedAt` to the `VoiceChannel` table wi...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : mar. 10 nov. 2020 à 14:43 -- Version du serveur : 10.4.14-MariaDB -- Version de PHP : 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>kodema5/auth.sql create type auth.web_signon_it as ( _auth auth.auth_t, namespace text, signon_id text, signon_key text, setting text ); create function auth.web_signon(req jsonb) returns jsonb as $$ declare it auth.web_signon_it = jsonb_populate_record(null::auth.web_signon_it, auth....
SELECT SUM(cost) AS earnings FROM Rides r INNER JOIN bookings b on r.booking_id = b.id WHERE b.status = 'COMPLETED';
-- Table representing the BaseEntity drop table if exists base_entity cascade; create table base_entity ( id bigint not null unique, date_created timestamp not null, date_updated timestamp not null, primary key (id) ); -- Table representing the Pizza entity drop table if exists pizza casca...
CREATE TABLE entries ( "id" INTEGER primary key, "title" varchar(340) NOT NULL, "body" longtext NOT NULL, "body_rendered" longtext NOT NULL, "type" varchar(255) NOT NULL, "identifier_id" int(10) NOT NULL, "anchor" varchar(2000) NOT NULL, "user_id" int(10) NOT NULL, "public" tinyint(1) NOT NULL DEFAU...
<gh_stars>1-10 CREATE TABLE Categoria ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, nome VARCHAR(30) NOT NULL, created TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), edited DATETIME ); CREATE TABLE Produto ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, nome VARCHAR(50) NOT NULL, unidade VARC...
-- file:errors.sql ln:240 expect:false drop tuple rule nonesuch
<reponame>willfva/azure-data-services-go-fast-codebase<filename>solution/Database/ADSGoFastDbUp/AdsGoFastDbUp/0-1-0-beta/A-Journaled/003-StoredProcsEtc.sql<gh_stars>10-100 /*----------------------------------------------------------------------- Copyright (c) Microsoft Corporation. Licensed under the MIT license. ...
<filename>Ora_SQLPlus_SQLcL_sql_scripts/tab_defekt_blocks.sql --============================================================================== -- GPI - <NAME> -- Desc: check for block corruption --============================================================================== set verify off set linesize 130 pagesize 300...
TRUNCATE TABLE PROTOCOL_ORG_TYPE DROP STORAGE / INSERT INTO PROTOCOL_ORG_TYPE (PROTOCOL_ORG_TYPE_CODE,DESCRIPTION,UPDATE_USER,UPDATE_TIMESTAMP,OBJ_ID,VER_NBR) VALUES ('1','Performing Organization','admin',SYSDATE,SYS_GUID(),1) / INSERT INTO PROTOCOL_ORG_TYPE (PROTOCOL_ORG_TYPE_CODE,DESCRIPTION,UPDATE_USER,UPDATE_T...
-- Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. -- PostgreSQL database for the ldap module, version 1.1.0 SET client_encoding = 'UTF8'; SET default_with_oids = FALSE; CREATE TABLE IF NOT EXISTS "ldap_user" ( "ldap_user_id" serial PRIMARY KEY, "user_id" bigint NOT NULL, "log...
-- /packages/acs-subsite/sql/subsite-group-callbacks-create.sql -- Defines a simple callback system to allow other applications to -- register callbacks when groups of a given type are created. -- Copyright (C) 2001 ArsDigita Corporation -- @author <NAME> (<EMAIL>) -- @creation-date 2001-02-20 -- $Id: subsite-callb...
CREATE USER app IDENTIFIED BY app; GRANT CONNECT, RESOURCE, DBA TO app;
{{ config( materialized = 'table' ) }} select d.user_id ,d.email ,d.created_at ,d.state ,d.country ,d.user_tenure ,d.order_recency ,d.last_touch_recency ,d.num_orders ,d.customer_type ,d.total_order_value ,d.avg_order_value from {{ ref('dim_users') }} d left join {{ ref('fact_orders') }} f on d....
SELECT group_id,invitation_mail,preferred_username,email,sub,group_manager,CASE WHEN service_petition_details.service_name IS NULL THEN service_details.service_name ELSE service_petition_details.service_name END as service_name FROM (SELECT group_id,sub,group_manager,email as invitation_mail FROM invitations WHERE i...
select organization_id, name from {{ ref('organization_map') }}
SELECT COUNT(*) FROM aka_name AS an1, cast_info AS ci, company_name AS cn, movie_companies AS mc, name AS n1, role_type AS rt, title AS t WHERE cn.country_code ='[us]' AND rt.role ='costume designer' AND an1.person_id = n1.id AND n1.id = ci.person_id AND ci.movie_id = t.id AND t...
CREATE TYPE USERTYPE1 AS SMALLINT GO
<reponame>kevin-at-datical/liquibase-test-harness<filename>src/main/resources/liquibase/harness/change/expectedSql/oracle/18.3.0/dropNotNullConstraint.sql ALTER TABLE DATICAL_ADMIN.posts MODIFY inserted_date CONSTRAINT test_notNull NOT NULL ALTER TABLE DATICAL_ADMIN.posts MODIFY inserted_date NULL
<filename>tests/queries/0_stateless/01034_order_by_pk_prefix.sql DROP TABLE IF EXISTS test_table; CREATE TABLE test_table (n Int32, s String) ENGINE = MergeTree() PARTITION BY n % 10 ORDER BY n; INSERT INTO test_table SELECT number, toString(number) FROM system.numbers LIMIT 100; INSERT INTO test_table SELECT number,...
DROP TABLE IF EXISTS max_length_alias_14053; CREATE TABLE max_length_alias_14053 (`a` Date,`b` UInt16,`c.d` Array(Date),`dcount` UInt16 ALIAS length(c.d)) ENGINE = MergeTree PARTITION BY toMonday(a) ORDER BY (a, b) SETTINGS index_granularity = 8192; INSERT INTO max_length_alias_14053 VALUES ('2020-10-06',7367,['2020-...
<gh_stars>10-100 SELECT cdb_crankshaft._cdb_random_seeds(1234); -- Use regular user role SET ROLE test_regular_user; -- Add to the search path the schema SET search_path TO public,cdb_crankshaft; -- Exercise public functions SELECT ppoints.code, m.quads FROM ppoints JOIN CDB_AreasOfInterest_Local('ppoints', 'val...
<reponame>nmbazima/TSQLBeginners<gh_stars>0 /****************************************************************************** Course videos: https://www.red-gate.com/hub/university/courses/t-sql/tsql-for-beginners Course scripts: https://litknd.github.io/TSQLBeginners Table Valued Functions (with a bit of CROSS APP...
<filename>db-file/poll.sql -- phpMyAdmin SQL Dump -- version 4.9.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Dec 11, 2020 at 03:31 AM -- Server version: 5.7.26 -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `polling` -- -- -...
<reponame>zaldolphin/ukk2017 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 09, 2017 at 07:05 AM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_S...
insert into affiliations_hardware(affiliation_id, hardware_id, valid_from, valid_to) VALUES (1,1,'2019-07-12 12:00:00','2019-07-14 12:00'), (2,1,'2019-07-14 12:00:00','2019-09-10 12:00'), (1,1,'2019-09-10 12:00:00',null), (2,2,'2019-01-01 12:00:00',null), (3,4,'2017-09-23 12:00:00',null), (4,5,'...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th12 01, 2021 lúc 01:56 PM -- Phiên bản máy phục vụ: 10.4.22-MariaDB -- Phiên bản PHP: 8.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
<reponame>jenngreiner/employee-management-system-homework12 USE employeeTrackerDB; INSERT INTO role(id, title, salary, department_id) VALUES (1, "Sales Lead", 120000, 1), (2, "Salesperson", 75000, 1), (3, "Lead Engineer", 150000, 2), (4, "Software Engineer", 110000, 2), (5, "Accountant", 75000, 3), ...
CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE `burgers` ( id INT AUTO_INCREMENT NOT NULL, burger_name VARCHAR (300) NOT NULL, devoured BOOLEAN DEFAULT false, createdAt TIMESTAMP NOT NULL, PRIMARY KEY (id) );
SELECT count(*) FROM title AS t, movie_keyword AS mk, keyword AS k, info_type AS it, movie_info AS mi WHERE it.id = 3 AND it.id = mi.info_type_id AND mi.movie_id = t.id AND mk.keyword_id = k.id AND mk.movie_id = t.id AND lower(k.keyword) LIKE '%love%' AND lower(mi.info) LIKE '%romance%'
CREATE TABLE [dbo].[WFL_APLICACAO] ( [Id] [int] NOT NULL IDENTITY, [Nome] [nvarchar](max), [Descricao] [nvarchar](max), CONSTRAINT [PK_dbo.WFL_APLICACAO] PRIMARY KEY ([Id]) ) CREATE TABLE [dbo].[Usuario] ( [Id] [int] NOT NULL IDENTITY, [Login] [nvarchar](max), [Aplicacao_Id] [int],...
Update Organisation Set Name = 'South African Environmental Observation Network', Description = 'A sustained, coordinated, responsive and comprehensive South African in-situ environmental observation network that delivers long-term reliable data.', Url = 'https://wwww.saeon.ac.za' where Code = 'SAEON' Update ...
<gh_stars>0 DROP DATABASE IF EXISTS restaurants_db; CREATE DATABASE restaurants_db; USE restaurants_db; CREATE TABLE restaurants ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, visited BOOLEAN DEFAULT false, liked BOOLEAN DEFAULT false, PRIMARY KEY (id) );
-- <NAME> <Expert Blacksmith> DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=1017 AND `SourceEntry`=0 AND `ConditionTypeOrReference`=7; INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `Com...
/* Nationality of an IP entity An IP, natural persons only (type of interested party), may have no, one or more nationalities at any point in time. */ CREATE TABLE [ipi].[IPNationality]( [NTID] [int] IDENTITY(1,1) NOT NULL, [RowID] [bigint] NOT NULL, [ID] [int] NOT NULL, [TISN] [char](4) NULL, [TISNVali...
INSERT INTO comment (id, user_id, post_id, creation_date_time, text) VALUES (49, 5, 7, '2021-01-30 11:10:12+03', 'И чего я ей не нравлюсь? Я хороший кот'), (50, 5, 9, '2021-01-30 11:11:12+03', 'Лично у меня от этого счастья полные штаны'), (51, 5, 10, '2021-01-30 11:12:12+03', 'Лечим как можем'), (...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 23, 2020 at 09:53 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
SELECT CC.CONSTRAINT_CATALOG , CC.CONSTRAINT_SCHEMA , CC.CONSTRAINT_NAME , CC.CHECK_CLAUSE , CTU.TABLE_NAME , CCU.COLUMN_NAME FROM information_schema.CHECK_CONSTRAINTS CC INNER JOIN information_schema.CONSTRAINT_TABLE_USAGE CTU ON (CC.CONSTRAINT_CATALOG=CTU.CONSTRAINT_CATALOG AND CC.CONSTRAINT_SCHEMA=CTU.CONSTRAIN...
CREATE TABLE reading ( id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, book_id INT REFERENCES books(id) ON DELETE CASCADE, start_date DATE, finish_date DATE, rating INT, UNIQUE(id, book_id, start_date, finish_date) );
/* dune query here: https://duneanalytics.com/queries/67932 This query compares past 3 days MVI NAV and it's market price by minute. How it works? 1. Most of the tokens in mvi index have no price data on Dune, so we must build a price feed by using uniswap's trading data. 2.figures out the composition of per MVI each m...
<filename>doc/table.sql /* 商品表 */ CREATE TABLE `tbl_product` ( `id` int(11) not null AUTO_INCREMENT, `seller_id` int(11) default null COMMENT '卖家id', `product_name` varchar(255) DEFAULT NULL COMMENT '商品名', `product_num` int(11) DEFAULT NULL COMMENT '商品数量', `product_image` varchar(255) DEFAULT NULL COMMENT '商...
<filename>src/test/resources/func.test_21.sql<gh_stars>100-1000 -- func.test -- -- execsql {SELECT t1 FROM tbl1 ORDER BY t1} SELECT t1 FROM tbl1 ORDER BY t1
-- This file should undo anything in `up.sql` ALTER TABLE to_do DROP COLUMN user_id; -- drop the users table DROP TABLE users
<reponame>carroll1118/PrevisionProject<filename>project idea/study/spring-boot-redis-annotation-demo-master/src/main/resources/db.sql<gh_stars>0 DROP TABLE IF EXISTS t_user; CREATE TABLE t_user ( id VARCHAR(64) PRIMARY KEY, username VARCHAR(128) NOT NULL, password VARCHAR(256) NOT NULL );
/* Copyright 2009 <NAME>. 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 la...
------------------------------------------------------------------------------- -- vehicle driver ------------------------------------------------------------------------------- CREATE TABLE VEHICLE_DRIVER( ID BIGINT NOT NULL, NAME VARCHAR(50), GENDER VARCHAR(50), BIRTHDAY DATE, CODE VARCHAR(50...
# --- MapRoulette Scheme # --- !Ups -- Clean up empty task tags. -- (This will also clean up the join tables as well. tags_on_tasks/tags_on_challenges) DELETE FROM tags where name=''; -- Combine groups and user_groups into new grants table CREATE TABLE IF NOT EXISTS grants ( id SERIAL NOT NULL PRIMARY KEY, name c...
<reponame>lulzzz/tellma<filename>Tellma.Database.Application/dbo/User Defined Types/dbo.AccountClassificationList.sql CREATE TYPE [dbo].[AccountClassificationList] AS TABLE ( [Index] INT PRIMARY KEY , [Id] INT NOT NULL DEFAULT 0, [ParentIndex] INT, [ParentId] INT, [Name] NVARCHAR (255), [N...
<reponame>chekos/shiba ALTER TABLE applications ADD COLUMN caf_application_status VARCHAR; ALTER TABLE applications ADD COLUMN ccap_application_status VARCHAR; ALTER TABLE applications ADD COLUMN uploaded_documents_status VARCHAR;
SELECT ST_AsGeoJSON(geometry) polygon, id, project_id, col_id, col_name, description,col_group_id, col_group, col_group_name, color from ${project_schema}.column_map_face c;
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.1.35-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 9.4.0.5125 -- ------------------------------------------------...
<filename>MovieArchiveDB/dbo/Tables/MOV_M_Language.sql CREATE TABLE [dbo].[MOV_M_Language] ( [ID] INT IDENTITY (1, 1) NOT NULL, [MovieID] INT NOT NULL, [LanguageID] INT NOT NULL, CONSTRAINT [PK_Languages_1] PRIMARY KEY CLUSTERED ([ID] ASC), CONSTRAINT [FK_Languages_Languages1] FOREIGN KE...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 16, 2019 at 10:53 AM -- Server version: 10.3.15-MariaDB -- PHP Version: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
------------ INSERTS INTO CUSTOMER DETAILS----------- INSERT INTO CUSTOMER_DETAILS(CUSTOMER_ID,CREATED_AT,MODIFIED_AT,TITLE,FIRST_NAME,LAST_NAME,GENDER) VALUES(100,CURRENT_TIMESTAMP,CURRENT_TIMESTAMP,'Mr.','Mohammad','Uzair','MALE'); INSERT INTO CUSTOMER_DETAILS(CUSTOMER_ID,CREATED_AT,MODIFIED_AT,TITLE,FIRST_NAME...
DROP TABLE Es; DROP TABLE Dirigida; DROP TABLE Vista; DROP TABLE Pendiente; DROP TABLE Categoria; DROP TABLE Publico; DROP TABLE Pelicula; DROP TABLE Usuario;
-- Registry tables are generic key/value stores -- global registry table should never change CREATE TABLE registry ( key TEXT PRIMARY KEY NOT NULL, value TEXT ); -- per event registry entries CREATE TABLE event_registry ( event_id INTEGER NOT NULL, key TEXT NOT NULL, value TEXT, PRIMARY KEY ( event_id...
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 07, 2013 at 05:00 PM -- Server version: 5.5.32 -- PHP Version: 5.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.7.33 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 11.2.0.6213 -- -------------------------------------------------------- /...
<filename>script.sql<gh_stars>0 CREATE SCHEMA plataforma; CREATE TABLE plataforma.table_carreras ( id_carrera varchar(45) NOT NULL PRIMARY KEY, nombre varchar(50) NOT NULL ); CREATE TABLE plataforma.table_ciudades ( id_ciudad int NOT NULL AUTO_INCREMENT PRIMARY KEY...
ALTER TABLE user MODIFY country INT(11); ALTER TABLE user ADD CONSTRAINT user_country FOREIGN KEY (country) REFERENCES countries(id);
DROP TABLE IF EXISTS "tradedhouse"; CREATE TABLE "tradedhouse" ( "id" INTEGER NOT NULL PRIMARY KEY, "xiaoqu" VARCHAR(255) NOT NULL, "houseType" VARCHAR(64) NOT NULL, "square" REAL NOT NULL, "houseUrl" VARCHAR(255) NOT NULL, "orientation" VARCHAR(32) NOT NULL, "decoration" VARCHAR(32) N...
-- BrentOzar -- Download from https://www.brentozar.com/first-aid/ Exec sp_Blitz -- dbatools.io Get-DbaLastBackup -SQLInstance LensmanSB | Out-GridView -- dbachecks.io
USE AdventureWorks2016 SELECT * FROM Person.Person
INSERT INTO `hFileIcons` ( `hFileIconId`, `hFileMIME`, `hFileName`, `hFileICNS`, `hFileExtension` ) VALUES (1, 'file', 'generic_document.png', 'GenericDocumentIcon.icns', ''), (2, 'folder', 'folder.png', 'GenericFolderIcon.icns', ''), (3, 'text/html', 'document.png', 'GenericDocumentIcon...
-- CreateTable CREATE TABLE "Admin" ( "id" TEXT NOT NULL, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "email" TEXT NOT NULL, "password" TEXT NOT NULL, CONSTRAINT "Admin_pkey" PRIMARY KEY ("id") ); -- CreateIndex CREATE UNIQUE INDEX "Admin_email_key" ON "Admin"("email");
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SQLCop].[test Table name problems]') AND type in (N'P', N'PC')) DROP PROCEDURE [SQLCop].[test Table name problems] GO CREATE PROCEDURE [SQLCop].[test Table name problems] AS BEGIN -- Written by <NAME> -- February 25, 2012 -- http://sqlcop.lessthan...
<gh_stars>100-1000 CREATE OR REPLACE FUNCTION select_param(n INT) RETURNS INT AS $$ BEGIN RETURN n; END $$ LANGUAGE plpgsql;
-- file:event_trigger.sql ln:78 expect:true create event trigger regress_event_trigger2 on ddl_command_start when tag in ('create table', 'CREATE FUNCTION') execute procedure test_event_trigger()
select transaction_unique_identifier from {{ ref("stg_ppd__england_wales_sales") }} where primary_addressable_object_name is null and secondary_addressable_object_name is null
<reponame>cato1761/DemoERP<gh_stars>0 -- -- Menu base entries -- This file is loaded when a menu handler base is activated (auguria, etc..) -- delete from llx_menu where menu_handler=__HANDLER__ and entity=__ENTITY__; -- -- table llx_menu -- insert into llx_menu (module, enabled, rowid, menu_handler, type, mainmenu...
<filename>schema/verify/types/production_form_data.sql -- Verify ggircs-portal:types/production_form_data on pg begin; do $$ begin assert ( select true from pg_catalog.pg_type where typname = 'production_form_data' ), 'type "production_form_data" is not defined'; end; $$; rollback;
<reponame>MattDodsonEnglish/zitadel ALTER TABLE management.current_sequences ADD COLUMN last_successful_spooler_run TIMESTAMPTZ; ALTER TABLE auth.current_sequences ADD COLUMN last_successful_spooler_run TIMESTAMPTZ; ALTER TABLE authz.current_sequences ADD COLUMN last_successful_spooler_run TIMESTAMPTZ; ALTER TABLE admi...
/*criação de stored e procedure - usado para fazer atualização, modificação ou exclução de um dado, é um função que só usa o call para chamar a função e realizar a ingestão de dados*/ #PROCEDURE PARA INSERT, UPDATE E DELETE NA TABELA CLIENTE DELIMITER $$ CREATE PROCEDURE sp_cliente ( IN in_acao varchar (1), IN in_...