sql
stringlengths
6
1.05M
<filename>examen.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 22-05-2020 a las 21:37:58 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSAC...
DROP DATABASE IF EXISTS locadoraDeJogos; CREATE DATABASE locadoraDeJogos; USE locadoraDeJogos; CREATE TABLE jogo( id int auto_increment primary key, nome varchar(30) not null, desenvolvedor varchar(30) not null, dataLancamento varchar(10) not null, plataforma varchar(30) not null, preco float not ...
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 21, 2020 at 05:14 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 type event_type as enum (); create table event_store ( id bigserial primary key, type event_type not null, entity_id uuid not null, payload jsonb not null, inserted_at timestamptz(6) not null default now() ); --- drop table event_store; drop type even...
/*-execute-*/ begin;
<filename>docs/RatingEmpresas.sql -- 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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ---------------------------------------...
-- +micrate Up CREATE TABLE nvinfos ( id bigserial primary key, author_id bigint not null default 0, btitle_id bigint not null default 0, ysbook_id bigint not null default 0, subdue_id bigint not null default 0, -- title vname text not null default '', bhash text unique not null, bslug text unique...
create or replace table `dataline-integration-testing`.test_normalization.`conflict_stream_name_conflict_stream_name_conflict_stream_name` OPTIONS() as ( with __dbt__CTE__conflict_stream_name_conflict_stream_name_conflict_stream_name_ab1 as ( -- SQL model to parse JSON blob stored in a single column...
<filename>sql/large.sql CREATE TABLE notes (id INTEGER, note TEXT); INSERT INTO notes (id, note) VALUES (3, 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
INSERT INTO authorised_values (category,authorised_value,lib,lib_opac) VALUES ('YES_NO','0','No','No'); INSERT INTO authorised_values (category,authorised_value,lib,lib_opac) VALUES ('YES_NO','1','Yes','Yes'); INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('HSBND_FREQ','EW','Every week');
drop database if exists company_db; create database if not exists company_db; use company_db; create table department( id int PRIMARY KEY, depName VARCHAR(30) ); create table roles ( id INT PRIMARY KEY, title VARCHAR(30), salary DECIMAL, department_id INT, FOREIGN KEY(department_id) REFEREN...
--liquibase formatted sql -- -- This file was last modified at 2022.03.23 22:47 by <NAME>. -- This is free and unencumbered software released into the public domain. -- For more information, please refer to <http://unlicense.org> -- 175_date_2021_01_15_time_00_37_55_issues_52_dictionary_tag_label_user_name_index.sql ...
BEGIN; -- We want to remove the assemblies we have no regions for. This is because it -- doesn't make sense to list them in genome browser or anything if we have no -- data. However, we can't figure out what assemblies to remove until after the -- release because of the mapping procedure. Even if we don't fetch that d...
<reponame>xiaomengbai/NestGPU<gh_stars>1-10 select min(ps_supplycost) from partsupp;
drop table IF EXISTS edge; create table edge(src int, dest int); insert into edge values(1,2); insert into edge values(2,1); insert into edge values(1,3); insert into edge values(3,1); insert into edge values(1,4); insert into edge values(4,1); insert into edge values(1,5); insert into edge values(5,1); select * from e...
--datetimeltz + time set timezone '+09:00'; select addtime(datetimeltz'2000-1-1 ',time'13:00:00'); select to_datetime_tz(addtime(datetimeltz'2000-1-1 ' ,time'13:00:00')); set timezone '-4:00'; select addtime(datetimeltz'2015-3-8 00:00:00 America/New_York ' ,time'2:30:00'); select to_datetime_tz(addtime(datetimeltz'2...
-- Keep a log of any SQL queries you execute as you solve the mystery. SELECT * FROM interviews WHERE year = 2020 AND day = 28 AND month = 7; SELECT activity, license_plate, hour, minute FROM courthouse_security_logs WHERE year = 2020 AND month = 7 AND day = 28 AND hour = 10; -- possible thief's license exit | 5P2BI95 ...
-- init.sql: Create tables create table users ( userid integer primary key autoincrement, slackid text not null ); insert into users (userid, slackid) values(-1, 'witty-default'); create table emoji ( emojiid integer primary key autoincrement, keyword text not null, userid integer not null references users(...
insert into academy values("person 5", "person 5", "human","M",01/01/2000,01/01/2000);
ALTER TABLE `?:news` ADD COLUMN `company_id` int(11) unsigned NULL DEFAULT '0'; ALTER TABLE `?:user_mailing_lists` MODIFY COLUMN `format` tinyint(3) unsigned NOT NULL DEFAULT 1;
<filename>laravelportfolio.sql -- MySQL dump 10.13 Distrib 8.0.26, for Win64 (x86_64) -- -- Host: localhost Database: laravel -- ------------------------------------------------------ -- Server version 8.0.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_R...
<reponame>leonardotlima/Ponto-de-venda create schema mercado2015; -- drop database mercado2015; use mercado2015; create table mercadoria( id integer unsigned not null auto_increment, descricao varchar(100) not null, preco decimal(10,2) not null, constraint pk_compra_id primary key(id) ); create table co...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versión del servidor: 10.1.13-MariaDB - mariadb.org binary distribution -- SO del servidor: Win32 -- HeidiSQL Versión: 9.5.0.5196 -- ------------------------------------------------...
INSERT INTO media VALUES ("ltr_hbs8050","letter","1851-07-09","Brunswick","ME","US","Harriet","Beecher Stowe","","Frederick","Douglass","","individual","","In the course of my story the scene will fall upon a cotton plantation. I am very desirous, therefore, to gain information from one who has been an actual laborer o...
<gh_stars>0 CREATE TABLE Customer ( username VARCHAR(30) PRIMARY KEY , address VARCHAR(200) NOT NULL ); CREATE TABLE Category ( categoryID INTEGER AUTO_INCREMENT PRIMARY KEY, categoryName VARCHAR(30) NOT NULL ); CREATE TABLE Product ( productID INTEGER AUTO_INCREMENT PRIMARY KEY, listed BOOLEAN NOT NULL, pro...
<filename>sql/car_user.sql /* Navicat MySQL Data Transfer Source Server : localhost_laravel58 Source Server Version : 50726 Source Host : localhost:3306 Source Database : laravel58 Target Server Type : MYSQL Target Server Version : 50726 File Encoding : 65001 Date: 2020-04-17 15:30...
<reponame>richardmyu/cs SELECT * FROM Product UNION SELECT * FROM Product INTERSECT SELECT * FROM Product ORDER BY product_id; /* Product */
<gh_stars>1-10 WITH monthly_registration_patient_states AS (SELECT registration_facility_id AS facility_id, month_date, gender, hypertension, diabetes FROM reporting_patient_states WHERE months_since_registration = 0 ), registered_patients AS (SELECT facility_id, month_date, ...
<gh_stars>1-10 insert into ingredient (id, description, code, name, locked, ingredient_status_id) values (1, 5, 1, 'salt', 1, 3); insert into ingredient (id, description, code, name, locked, ingredient_status_id) values (2, 2, 7, 'pepper', 1, 10); insert into ingredient (id, description, code, name, locked, ingredien...
<filename>data/test/sql/bbb41a86ab2c8c1413c58b230a6f36098dcac82az_catalog_software_instance_list.sql DELETE FROM software_instance_tree WHERE <dtml-in uid> uid=<dtml-sqlvar sequence-item type="int"><dtml-if sequence-end><dtml-else> OR </dtml-if> </dtml-in> ; <dtml-var "'\0'"> <dtml-let row_list="[]"> <dtml-in p...
ALTER TABLE `cluster` ADD COLUMN IF NOT EXISTS option_parameters TEXT NOT NULL DEFAULT '{}' AFTER broker_hosts; UPDATE `cluster` set option_parameters = '{}' where option_parameters IS NULL;
<reponame>jdkoren/sqlite-parser -- async5.test -- -- execsql { -- ATTACH 'test2.db' AS next; -- CREATE TABLE main.t1(a, b); -- CREATE TABLE next.t2(a, b); -- BEGIN; -- INSERT INTO t1 VALUES(1, 2); -- INSERT INTO t2 VALUES(3, 4); -- COMMIT; -- } ATTACH 'test2.db' AS next; CREATE TABLE ma...
<reponame>PolyCash/polycash ALTER TABLE `game_definition_migrations` ADD `extra_info` TEXT NULL DEFAULT NULL AFTER `to_hash`;
ALTER TABLE `game_defined_events` ADD `espn_event_uid` VARCHAR(64) NULL DEFAULT NULL AFTER `outcome_index`; ALTER TABLE `game_defined_options` ADD `target_probability` FLOAT NULL DEFAULT NULL AFTER `name`; ALTER TABLE `blocks` ADD INDEX (`blockchain_id`, `time_mined`); ALTER TABLE `transactions` CHANGE `OP_RETURN` `OP_...
<gh_stars>10-100 -- file:numeric.sql ln:704 expect:true COPY width_bucket_test (operand_num) FROM stdin
CREATE FUNCTION dbo.x360ce_GetGameSettingChecksum(@GameId uniqueidentifier) RETURNS uniqueidentifier BEGIN --ALTER TABLE x360ce_Games ADD COLUMN [SettingChecksum] AS (dbo.x360ce_GetGameSettingChecksum([GameId])) DECLARE @checksum uniqueidentifier; DECLARE @s nvarchar(1024); DECLARE @rn nvarchar(2); SET @rn =...
CREATE TABLE [dbo].[BlockingSnapshotSummary] ( [BlockingSnapshotID] INT IDENTITY (1, 1) NOT NULL, [InstanceID] INT NOT NULL, [SnapshotDateUTC] DATETIME2(7) NOT NULL, [BlockedSessionCount] INT NULL, [BlockedWaitTime] BIGINT NULL, [UTCOffset] INT ...
<reponame>BearerPipelineTest/sqlc CREATE FUNCTION f$n() RETURNS integer AS 'SELECT 1'; -- name: Fn :one SELECT f$n();
<gh_stars>1000+ -- 2017-05-22T18:46:30.427 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,145,540204,TO_TIMESTAMP('2017-05-22 18:46:30','YYYY-MM-DD HH24:MI...
SET SESSION sql_mode=''; SET NAMES 'utf8'; /* PHP:add_supplier_manufacturer_routes(); */; /* PHP:ps_1750_update_module_tabs(); */; ALTER TABLE `PREFIX_cms_lang` ADD `head_seo_title` varchar(255) DEFAULT NULL AFTER `meta_title`, CHANGE `meta_title` `meta_title` VARCHAR(255) NOT NULL, CHANGE `meta_description` `...
<reponame>danielsunzhongyuan/my_leetcode_in_python select distinct l1.Num from Logs l1, Logs l2, Logs l3 where l2.Id = l1.Id + 1 and l3.Id = l1.Id + 2 and l2.Num = l1.Num and l3.Num = l1.Num
-- -- ***** BEGIN LICENSE BLOCK ***** -- Zimbra Collaboration Suite Server -- Copyright (C) 2013, 2014, 2016 Synacor, Inc. -- -- This program is free software: you can redistribute it and/or modify it under -- the terms of the GNU General Public License as published by the Free Software Foundation, -- version 2 of the...
-- Autogenerated: do not edit this file DROP TABLE BATCH_STEP_EXECUTION_CONTEXT ; DROP TABLE BATCH_JOB_EXECUTION_CONTEXT ; DROP TABLE BATCH_JOB_EXECUTION_PARAMS ; DROP TABLE BATCH_STEP_EXECUTION ; DROP TABLE BATCH_JOB_EXECUTION ; DROP TABLE BATCH_JOB_INSTANCE ; DROP SEQUENCE BATCH_STEP_EXECUTION_SEQ ; DROP SEQ...
/* Table that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction. */ --To disable this model, set the using_bill variable within your dbt_project.yml file to False. {{ config(enabled=var('using_bill', True)) }} with bills as ( select * from ...
<gh_stars>0 -- 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. CREATE OR REPLACE VIEW auth.EducationO...
DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `StagiaireAjoutOuModification`(IN `_idStagiaire` VARCHAR(60), IN `_Nom` VARCHAR(60), IN `_Prenom` VARCHAR(60)) NO SQL BEGIN SELECT @A := COUNT(idStagiaire) FROM stagiaire WHERE idStagiaire = _idStagiaire; IF @A = 0 THEN INSERT INTO stagiaire(idStagiaire,No...
#macro($zycQuery(schoolId,subjectCode)) SELECT * FROM school_question t WHERE t.school_id = :schoolId #if(subjectCode) AND t.subject_code like :subjectCode #end #end #macro($zycExists(schoolId,qCode)) SELECT count(*) FROM school_question s INNER JOIN question q on q.id = s.question_id WHERE s.school_id = :schoolId AND...
CREATE UNIQUE INDEX "SYS_IL0010691797C00038$$" ON "GIS_WORLD_EEZ" (
INSERT INTO aoco_blocksz32768 SELECT * FROM base_table;
DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `user_id` varchar(36) NOT NULL, `firstname` varchar(255) NOT NULL, `lastname` varchar(255) NOT NULL, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `created` datetime NOT NULL, `active` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHA...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 20 Mar 2020 pada 20.11 -- Versi Server: 10.1.10-MariaDB -- PHP Version: 5.5.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
--SELECT "Hatred_1"."State" AS "State", MAX("Hatred_1"."Keyword") AS "TEMP(attr:Keyword:nk)(2694177860)(0)", MIN("Hatred_1"."Keyword") AS "TEMP(attr:Keyword:nk)(4040898713)(0)" FROM "Hatred_1" WHERE ("Hatred_1"."Keyword" = 'slut') GROUP BY 1;
USE 19ss_tedk4_kws; SET NAMES utf8; INSERT INTO benutzer ( User_ID, Login, Passwd, Anrede, Titel, Vorname, Nachname, PLZ, Ort, Strasse, HausNr, Email, Telefon, Reg_Zeitstempel, Reg_IP ) VALUES ( 4231, "brauer21", SHA2("MeinSicheresPassWD", 256), "Herr", NULL , "Martin", "Brauer", 20259, "Hamburg", "Fruchtallee", ...
<filename>sql/data_manipulation_query/filter_operators.sql<gh_stars>0 SELECT * FROM tbcliente; SELECT * FROM tbcliente WHERE IDADE = 22; SELECT * FROM tbcliente WHERE IDADE > 22; SELECT * FROM tbcliente WHERE IDADE < 22; SELECT * FROM tbcliente WHERE IDADE <= 22; SELECT * FROM tbcliente WHERE IDADE <> 22; SELECT ...
<filename>src/Services/Members/Members.sql IF OBJECT_ID(N'[__EFMigrationsHistory]') IS NULL BEGIN CREATE TABLE [__EFMigrationsHistory] ( [MigrationId] nvarchar(150) NOT NULL, [ProductVersion] nvarchar(32) NOT NULL, CONSTRAINT [PK___EFMigrationsHistory] PRIMARY KEY ([MigrationId]) ); END...
CREATE TYPE complex_date AS ( date_without_time_zone timestamp, date_with_time_zone timestamp with time zone, date_without_time_zone_transformed timestamp, date_with_time_zone_transformed timestamp with time zone );
<reponame>krishemenway/leagues CREATE TABLE public.game_server ( game_server_id uuid NOT NULL DEFAULT uuid_generate_v1(), name character varying(128) COLLATE pg_catalog."default" NOT NULL, server_ip inet NOT NULL, owning_team_id uuid, CONSTRAINT game_server_pkey PRIMARY KEY (game_server_id), CO...
IF NOT EXISTS (SELECT * FROM master.dbo.sysdatabases WHERE [name] = 'StockMarketData') BEGIN PRINT 'Creating "StockMarketData" database..' CREATE DATABASE [StockMarketData] IF EXISTS (SELECT * FROM master.dbo.sysdatabases WHERE [name] = 'StockMarketData') BEGIN PRINT 'SUCCESS: Created "StockMarketData" databas...
<gh_stars>1-10 CREATE OR REPLACE TABLE CUSTOMERS ( CUST_ID INTEGER GENERATED ALWAYS AS IDENTITY ( START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CYCLE NO ORDER CACHE 20 ) , NAME1 VARCHAR(128) DEFAULT NULL , NAME2 VARCHAR(128) DEFAULT NULL , CHANGE_STAMP FOR COLUMN CHGTSTP TIMESTAMP GENERATED ALWAYS...
<filename>istore--0.1.7--0.1.6.sql ----functions---- DROP FUNCTION IF EXISTS clamp_above(bigistore, integer); ---- DROP FUNCTION IF EXISTS clamp_below(bigistore, integer); ---- DROP FUNCTION IF EXISTS clamp_above(istore, integer); ---- DROP FUNCTION IF EXISTS clamp_below(istore, integer);
<reponame>smith750/kc create sequence SEQ_ORGANIZATION_ID INCREMENT BY 1 START WITH 100000 /
SELECT client.name as client, product.title FROM client LEFT JOIN `order` ON order.id_client = client.id LEFT JOIN order_details ON order_details.id_order = order.id LEFT JOIN product ON order_details.id_product = product.id GROUP BY client, title ORDER BY client;
<filename>install/blog.sql /* Navicat MySQL Data Transfer Source Server : iuan Source Server Version : 50612 Source Host : localhost:3306 Source Database : blog Target Server Type : MYSQL Target Server Version : 50612 File Encoding : 65001 Date: 2014-03-06 18:13:23 */ SET FOREIGN_...
<reponame>kevintech/oci-rest-api-signer<gh_stars>0 DECLARE l_principal VARCHAR2(20) := 'APEX_180200'; BEGIN DBMS_NETWORK_ACL_ADMIN.create_acl ( acl => 'oci_object_storage_acl.xml', description => 'An ACL for the oraclecloud.com website', principal => l_principal, is_grant => TRUE, ...
-- -- Copyright 2018 the original author or authors -- -- 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...
<filename>DapperExtensions.Test/IntegrationTests/Postgre/Sql/CreatePersonTable.sql DROP TABLE IF EXISTS Person; CREATE TABLE Person ( Id SERIAL, FirstName VARCHAR(50), LastName VARCHAR(50), DateCreated TIMESTAMP, Active BOOLEAN, PRIMARY KEY(Id) );
<gh_stars>1-10 /****** Object: UserDefinedFunction [dbo].[GetAnalysisToolAllowedInstClassList] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION GetAnalysisToolAllowedInstClassList /**************************************************** ** ** Desc: ** Builds a delimited list of allowed ...
-- 百万级别的表 - 用于做性能参照 -- 复制表 -- create table pt_a_millions_ref as (select * from pt_ten_millions_original limit 1000000); -- 添加索引 -- ALTER TABLE pt_a_millions_ref -- ADD INDEX pt_amr_id (id), -- ADD INDEX pt_amr_goods_id (goods_id), -- ADD INDEX pt_amr_in_date (in_date); -- 统计 in_date 范围 select max(in_date...
alter table DDCDI_IMPORT_ATTRIBUTE_MAPPER add column IS_REQUIRED_COLUMN boolean ;
INSERT INTO my_static_keyspace.entity_static_annotations(partition_key, value, "overRiden") VALUES(${id}, 'val', 'overriden_val');
<reponame>zjtheone/postgres_cluster<filename>contrib/pglogical/sql/infofuncs.sql CREATE EXTENSION pglogical; SELECT pglogical.pglogical_max_proto_version(); SELECT pglogical.pglogical_min_proto_version(); SELECT pglogical.pglogical_version() = extversion FROM pg_extension WHERE extname = 'pglogical'; DROP EXTENSION...
-- +migrate Down -- +migrate StatementBegin ALTER TABLE active_probes DROP COLUMN IF EXISTS lang_code; ALTER TABLE probe_updates DROP COLUMN IF EXISTS lang_code; -- +migrate StatementEnd -- +migrate Up -- +migrate StatementBegin DO $$ BEGIN BEGIN ALTER TABLE active_probes ADD COLUMN lang_code ...
alter table "video"."RoomRtmpOutput" drop constraint "RoomRtmpOutput_roomId_fkey", add constraint "EventRtmpOutput_eventId_fkey" foreign key ("roomId") references "schedule"."Event" ("id") on update cascade on delete cascade;
-- +migrate Up ALTER TABLE workflow DROP CONSTRAINT IF EXISTS fk_workflow_root_node; ALTER TABLE workflow_node DROP CONSTRAINT IF EXISTS fk_workflow_node_pipeline; ALTER TABLE workflow_node DROP CONSTRAINT IF EXISTS fk_workflow_node_workflow; ALTER TABLE workflow_notification_source DROP CONSTRAINT IF EXISTS fk_workf...
-- @testpoint: opengauss关键字Level(非保留),作为函数名,部分测试点合理报错 --关键字不带引号-成功 drop function if exists Level; create function Level(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带双引号-成功 drop function if exists "Level"; create function "Level"(i integer) returns integer as $$ begin ret...
<filename>db/db_sqlite3/migrations/20171027213457_0.4.1_maillogs.sql -- +goose Up -- SQL in section 'Up' is executed when this migration is applied CREATE TABLE IF NOT EXISTS "mail_logs" ( "id" integer primary key autoincrement, "campaign_id" integer, "user_id" integer, "send_date" datetime, ...
/****** Object: StoredProcedure [dbo].[usp_GetJobsFailed] Script Date: 2/13/2021 12:12:43 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- jobs that failed in the past 24 hours. -- Need to convert this to generate an html email and email the DBA group CREATE PROC [dbo].[usp_GetJobsFaile...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Aug 30, 2019 at 12:29 AM -- Server version: 5.7.26 -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `u14126461` -- -- ------------------------...
-- MySQL dump 10.13 Distrib 8.0.18, for Linux (x86_64) -- -- ------------------------------------------------------ -- Server version 8.0.18 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@C...
<gh_stars>0 DROP DATABASE IF EXISTS employee_db; CREATE DATABASE employee_db; USE employee_db; CREATE TABLE employee ( id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(30), last_name VARCHAR(30), role_id INTEGER, manager_id INTEGER ); CREATE TABLE department ( department_id INT NOT NU...
<reponame>EWBSWE/member-portal<gh_stars>0 SELECT * FROM event_participant
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 17, 2020 at 02:19 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...
IF OBJECT_ID(N'[__EFMigrationsHistory]') IS NULL BEGIN CREATE TABLE [__EFMigrationsHistory] ( [MigrationId] nvarchar(150) NOT NULL, [ProductVersion] nvarchar(32) NOT NULL, CONSTRAINT [PK___EFMigrationsHistory] PRIMARY KEY ([MigrationId]) ); END; GO BEGIN TRANSACTION; GO IF NOT EXISTS(...
IF (OBJECT_ID('dbo.stpSecurity_Checklist') IS NULL) EXEC('CREATE PROCEDURE dbo.stpSecurity_Checklist AS SELECT 1') GO -------------------------------------------------------------------------------------------------------------------- -- -- stpSecurity_Checklist - 1.0.4 (21/06/2019) -- Checklist de segurança para ambi...
<reponame>backpaper0/sandbox<gh_stars>10-100 CREATE TABLE Accounts ( user_id VARCHAR2(20), user_name VARCHAR2(100), PRIMARY KEY (user_id) );
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE OR ALTER PROCEDURE [dbo].[prc_Perf_JobStepOutliers] @HistoryStartDate DATETIME = NULL --How far back in time of SQL Agent History do you want to use? ,@HistoryEndDate DATETIME = NULL ,@MinHistExecutions INT = 3 ,@MinAvgSecsDuration INT = 30 ...
CREATE TABLE COMPRAS ( ID NUMBER PRIMARY KEY, VALOR NUMBER, DATA DATE, OBSERVACOES VARCHAR2(30), RECEBIDO CHAR CHECK (RECEBIDO IN (0,1)) ); CREATE SEQUENCE ID_SEQ; INSERT INTO COMPRAS ( ID, VALOR, DATA, OBSERVACOES, RECEBIDO ) VALUES ( ID_SEQ.NEXTVA...
<gh_stars>1-10 alter table "public"."users" add column "departure" date null;
create proc jt.tempdbStats AS --from http://msdn.microsoft.com/en-us/library/ms176029.aspx --Determining the Amount of Free Space in tempdb SELECT SUM(unallocated_extent_page_count) AS [free pages], (SUM(unallocated_extent_page_count)*1.0/128) AS [free space in MB] FROM tempdb.sys.dm_db_file_space_usage; --Determinin...
<reponame>smith750/kc INSERT INTO KRIM_PERM_T (PERM_ID,PERM_TMPL_ID,NMSPC_CD,NM,DESC_TXT,ACTV_IND,OBJ_ID,VER_NBR) VALUES (KRIM_PERM_ID_BS_S.NEXTVAL,(SELECT PERM_TMPL_ID FROM KRIM_PERM_TMPL_T WHERE NM = 'Full Unmask Field'),'KC-SYS','View Active Special Review Types','Can view all active special review types','Y',SYS_...
<reponame>Arkania/ArkCORE ############################### ## Quest: Free Your Mind ## ## Team www.Wow-Attitude.com ## ## ## ## Credit: ## ## Mikadmin - Oracraft ## ## ## ############################### UPDATE `quest_template` SET `ReqCreat...
<reponame>cse-library/koha -- Availability status. -- DELETE FROM authorised_values WHERE category='LOST'; -- availability statuses INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('LOST','1','Втрачено'), ('LOST','2','Тривале прострочення (втрачено)'), ('LOST','3','Втрачено і заплачено за пр...
<gh_stars>0 CREATE OR REPLACE FUNCTION "DeleteFunction"(_name text) returns void As $func$ BEGIN EXECUTE(SELECT string_agg(format('DROP FUNCTION %s(%s);', oid::regproc, pg_catalog.pg_get_function_identity_arguments(oid)),E'\n') FROM pg_proc where proname = _name AND pg_function_is_visible(oid)); END $func$ LANGUAGE...
SELECT col1, typeOf(col1) tOfcol1, col2, typeOf(col2) tOfcol2, col3, typeOf(col3) tOfcol3 FROM ( SELECT 1 AS col1, CAST(2.0 AS DECIMAL(9,2)) AS col2, CAST(3.0 AS DECIMAL(9,2)) AS col3 FROM dfs.drillTestDir.`decimal/DRILL_6094/decimal9.csv` limit 1 ) d;
<filename>iBase4J.sql<gh_stars>1-10 -- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.7.11-enterprise-commercial-advanced-log - MySQL Enterprise Server - Advanced Edition (Commercial) -- 服务器操作系统: Win64 -- He...
create table certificate ( id int auto_increment primary key, host varchar(256) not null, open443 varchar(256) null, error varchar(256) null, ssl_error varchar(256) null, certificate_version varchar(10) null...
<filename>placekey/bq/sql/ISVALID.sql ----------------------------------------------------------------------- -- -- Copyright (C) 2021 CARTO -- ----------------------------------------------------------------------- CREATE OR REPLACE FUNCTION `@@BQ_PROJECTID@@.@@BQ_DATASET_PLACEKEY@@.ISVALID`(placekey STRING) RETU...
INSERT INTO public.regras (uid,id_,nome_atributo,atributo_obrigatorio,nome_regra,detalhe_regra,escopo,condicao,script,script_sugestao,tipo,ativa,criada_em,criada_por,modificada_em,modificada_por,excluida) VALUES ('affc382c-4eba-40d3-8190-ca70fcdb0e6e','c0e45d3b-2f1f-40ea-8438-8a917b24921a','dadosBasicos.numero',true,'...
INSERT INTO surveys_user(id, name) VALUES (1, 'Tom'), (2, 'Ban'), (3, 'Bob'), (4, 'Alex'), (5, 'Steve'), (6, 'Alice'), (7, 'Jhon'), (8, 'Sten'); INSERT INTO surveys_question(id, content) VALUES (1, 'Did you graduate from high school?'), (2, 'How do you rate medicine in your country from 1 to 10?'), (3, 'Should peopl...
INSERT INTO `job_positions` (`id`, `title`, `slug`, `is_active`, `content`, `location`) VALUES (1, 'Web Application Developer', 'web-application-developer', 1, '<p>We are looking for a technical, collaborative, and proactive person to join our team and take care of company online portals, such as our website, job and c...