sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 4.4.12 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 18-03-2016 a las 05:40:30 -- Versión del servidor: 5.6.25 -- Versión de PHP: 5.6.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
<reponame>samsonanami/FusionDocs -- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 26, 2018 at 12:17 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zon...
-- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : CaretClassifier_ctree -- Dataset : digits -- Database : teradata -- This SQL code can contain one or more statements, to be executed in the order they appear in this file. -- Model deployment code WITH "DT_node_look...
<gh_stars>0 CREATE TABLE SBI_PROGRESS_THREAD ( PROGRESS_THREAD_ID INTEGER NOT NULL, USER_ID VARCHAR(100) NOT NULL, PARTIAL INTEGER, TOTAL INTEGER, FUNCTION_CD VARCHAR(200), STATUS VARCHAR(4000), RANDOM...
<reponame>incapable/SmoothPHP<filename>template/sql/001-testuser.debug.sql # Inserts a user with email <EMAIL> and password <PASSWORD>. # You can easily obtain password hashes by using the CLI command: smoothphp hash INSERT INTO `users` (`email`, `password`) VALUES ('<EMAIL>', <PASSWORD>.')
USE ramen_db; INSERT INTO ramens (name) VALUES ("Tongkasu");
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 15-08-2021 a las 08:14:32 -- Versión del servidor: 10.4.20-MariaDB -- Versión de PHP: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
-- discids not applied on a medium (duration difference > 10 sec on track 1 or 2) -- with unique discid attached to the medium -- 2021-01-13: 230 (10 sec) -- 2021-01-13: 801 (5 sec) WITH unique_medium AS ( -- medium with exactly one discid SELECT medium FROM medium_cdtoc GROUP BY ...
/*Creat atl_db.sale*/ DROP table IF EXISTS atl_db.sale; Create TABLE atl_db.sale SELECT FMLS,Address,City,County,`Zip Code` as Zip, `Subdivision/Complex` as Sub, `Year Built` as Year, `Total Bedrooms` as B, `Total Full Baths` as B_F, `Total Half Baths` as B_H, `Square Footage` as sqft, Price, `Days On Market` as DOM, `...
<filename>JobExecutionFramework/SSISDB/internal/Stored Procedures/sync_validation_status.sql  CREATE PROCEDURE [internal].[sync_validation_status] @operation_id bigint, @external bit AS SET NOCOUNT ON DECLARE @status int DECLARE @validation_status int SET @statu...
<filename>src/main/resources/db/migration/V13__stillingprosent_endre_kolonnenavn.sql alter table avtale rename column arbeidstrening_stillingprosent to stillingprosent;
/****** Object: User Defined Function dbo.AllianceThreadLastPostDate Script Date: 5/1/2004 6:12:41 PM ******/ CREATE FUNCTION dbo.AllianceThreadLastPostDate ( @ThreadID int ) RETURNS datetime BEGIN RETURN(SELECT TOP 1 PostDate FROM AllianceForumsPosts WHERE ThreadID = @ThreadID ORDER BY PostDate DESC) ...
<filename>Oracle SQL Files/repairs.sql INSERT INTO Repairs VALUES (1,71,10,'Virus problem','Desktop','Medion','EliteBook Folio 1020','Other','27-Sep-2015','20-Apr-2015','New'); INSERT INTO Repairs VALUES (2,63,25,'Virus problem','Laptop','Acer','ThinkPad Yoga S1 ','Windows Older','22-Mar-2015','10-Aug-2015','Invoiced'...
-- file:plpgsql.sql ln:802 expect:true create function tg_slotlink_a() returns trigger as ' declare dummy integer
-- 11.12.2015 16:09 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,...
-- -- 4.0.0 to 4.1.0 -- -- There are no database changes between 4.0 and 4.1 -- -- This is a dummy placeholder file for the js-upgrade-samedb.sh/bat script --
drop procedure if exists uspAddUsers; drop table if exists Users; drop type if exists UserTableType; create table Users ( id int, name varchar(20) ); create type UserTableType as table ( id int, name varchar(20) ); create procedure uspAddUsers @UserTable UserTableType READONLY as begin insert into Users (...
<reponame>adymilk/luckMoney -- phpMyAdmin SQL Dump -- version phpStudy 2014 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2017 年 11 月 25 日 09:40 -- 服务器版本: 5.5.53 -- PHP 版本: 5.4.45 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
ALTER TABLE blocks DROP COLUMN modified_by;
-- apply changes alter table fh_portfolio modify fk_person_who_created varchar(40);
<reponame>f4bD3v/humanitas # keyspaces are used to group column families together - similar to schema in RDBS CREATE KEYSPACE tweet_collector WITH strategy_class = 'SimpleStrategy' AND strategy_options:replication_factor=1; # replication_factor = 1 - no replication # different replication requirements should reside in...
DROP RULE r_delete_magazine ON magazine; CREATE OR REPLACE RULE r_delete_magazine AS ON DELETE TO magazine DO ALSO NOTIFY delete_channel, 'Deletion of a tuple';
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 06, 2021 at 05:43 AM -- Server version: 5.6.51-cll-lve -- PHP Version: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
<gh_stars>0 DROP DATABASE IF EXISTS state_of_the_art_db; CREATE DATABASE state_of_the_art_db;
SELECT * FROM people; --Exercise #1-- SELECT DISTINCT pcity FROM people ORDER BY pcity ASC; --Exercise #2-- SELECT DISTINCT pcity AS "TOWNS" FROM people ORDER BY pcity ASC; --Exercise #3-- SELECT DISTINCT pfirstname || ' ' || plastname AS "Full name" FROM people ORDER BY plastname ASC; --Exercise #4-- SELECT pstate ||...
BEGIN; SELECT id AS maplayerid, externalid INTO oskari_maplayer_externalid FROM oskari_maplayer WHERE externalid <> ''; ALTER TABLE oskari_maplayer_externalid ADD PRIMARY KEY (maplayerid); ALTER TABLE oskari_maplayer_externalid ADD FOREIGN KEY (maplayerid) REFERENCES oskari_maplayer (id) ON DELETE CASCADE; ALTER TABL...
<filename>US_Stock_query.sql /* 테슬라 6월 종가 기록 SELECT Date, Close FROM US_Stock.daily WHERE DATE(Date) BETWEEN "2021-06-01" AND "2021-06-28" AND Symbol = "TSLA"; */ /* 테슬라와 동일한 산업의 시총 SELECT Industry, SUM(market capitalzation) FROM US_Stock.company, US_Stock.daily WHERE US_Stock.company.Symbol = US_Stock.dail...
<reponame>StillLearningHowToCode/Learning_BdD_SQL_2A_DUT ALTER TABLE table_name ADD column_name datatype;
<filename>prisma/migrations/20220317100733_update_table_deliveries/migration.sql<gh_stars>0 -- DropForeignKey ALTER TABLE "deliveries" DROP CONSTRAINT "deliveries_deliverymanId_fkey"; -- AlterTable ALTER TABLE "deliveries" ALTER COLUMN "deliverymanId" DROP NOT NULL, ALTER COLUMN "endAt" DROP NOT NULL; -- AddForeignKe...
CREATE DATABASE refuge; USE refuge; /*******CREATE TABLES*******/ CREATE TABLE referral ( referral_id INT PRIMARY KEY auto_increment, `source` VARCHAR(220) NOT NULL ); CREATE TABLE housing ( unit_id INT PRIMARY KEY auto_increment, unit_num VARCHAR(10) ); CREATE TABLE visitor ( visitor_id INT PRIMARY KEY...
USE [ANTERO] GO /****** Object: StoredProcedure [dw].[p_lataa_f_oiva_luvat_vst] Script Date: 22.11.2021 14:23:14 ******/ DROP PROCEDURE IF EXISTS [dw].[p_lataa_f_oiva_luvat_vst] GO /****** Object: StoredProcedure [dw].[p_lataa_f_oiva_luvat_amm] Script Date: 22.11.2021 14:23:14 ******/ DROP PROCEDURE IF EXISTS [...
<filename>src/internals/ValidateWhereParam.sql SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO /*[[LICENSE]]*/ CREATE PROCEDURE [internals].[ValidateWhereParam] @where NVARCHAR(MAX) AS BEGIN SET NOCOUNT ON; IF @where IS NOT NULL AND CHARINDEX('ours', @where) = 0 AND CHARINDEX('theirs', @where) = 0 BEGIN RAISERR...
ALTER TABLE blocks ADD stars INT[] NOT NULL DEFAULT '{}'; ALTER TABLE blocks ADD notif_enabled INT[] NOT NULL DEFAULT '{}';
/* Navicat Premium Data Transfer Source Server : 本机PG Source Server Type : PostgreSQL Source Server Version : 120001 Source Host : localhost:5432 Source Catalog : MagusGateway_User Source Schema : public Target Server Type : PostgreSQL Target Server Version : 120001 Fi...
<reponame>sshark/Nine-Square # --- !Ups create table user ( oid bigint primary key auto_increment, email varchar(255) unique, password varchar(255), name varchar(255), date_created timestamp, active boolean); create table puzzle ( oid bigint primary key auto_increment, board varchar(255), level int,...
<filename>src/ddl/02.table.sql CREATE TABLE `colegio_electoral` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `nombre` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UK_n9idjulnxkbrr50irwrt92iy2` (`nombre`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE `voto` ( `id` bigint(20) NOT NULL AUTO_INCRE...
<reponame>biosan-gxl/gxl-1st -- 1. 销售收入数据 -- 1.1 筛选出销售中心、共同承担的数据,并整理销售区域,将辅助、耗材、配套的统一称为其他 drop table if exists test.salse_order_TEMP01; create temporary table test.salse_order_TEMP01 as SELECT sales_dept ,case when sales_region regexp '爱尔康|金筛查|联兆' then '其他' when sales_region regexp '爱博|河南' then '爱博'...
<filename>db/spotter_image.sql CREATE TABLE IF NOT EXISTS `spotter_image` ( `spotter_image_id` int(11) NOT NULL AUTO_INCREMENT, `registration` varchar(20) NOT NULL, `image_thumbnail` varchar(255) NOT NULL, `image` varchar(255) NOT NULL, `image_copyright` varchar(255), `image_source` varchar(255), `image_s...
<reponame>nmbazima/SQL-Scripts<filename>Training/20762/Allfiles/Labfiles/Lab18/Starter/Workload/load_script1.sql -- load generation script 1 -- loops for up to 60 seconds, or until the ##stopload shared temp table is created DROP TABLE IF EXISTS ##stopload; USE AdventureWorks; GO DECLARE @start datetime2 = GETDATE(),...
<reponame>you1996/authelia<gh_stars>100-1000 CREATE TABLE IF NOT EXISTS authentication_logs ( id SERIAL, time TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, successful BOOLEAN NOT NULL, banned BOOLEAN NOT NULL DEFAULT FALSE, username VARCHAR(100) NOT NULL, auth_type VARCHAR(8) NOT ...
insert into "security_permission" (security_permission_id, created_on_date, last_updated_date, description) values ('STORE_STATIC_REPORT', timestamp 'now', timestamp 'now', 'Allows user to store static reports to s3 bucket.');
<filename>server/src/main/resources/db/common/V14__create_roles_table.sql drop type if exists role_t; create type role_t as enum('admin', 'pdl', 'member'); drop table if exists role; CREATE TABLE role( id varchar PRIMARY KEY, role role_t, memberid varchar REFERENCES member_profile(uuid), UNIQUE(memberid, r...
<gh_stars>1-10 with Invoices_input as ( select * from {{ ref('Invoices_input') }} ), /* Overview of frequently used functions in connector transformations. - Case statement - Get first non-null value; used to assign a specific value if the value is NULL - Timestamp based on only a date field - Trim part of a value...
<reponame>anjingbin/starccm<filename>postgresql/contrib/spi/preprocessor/example.sql -- Note the syntax is strict because i have no time to write better perl filter. -- -- [blank] is 1 blank -- at the end of an interesting line must be a [,] or [--] -- [ending] must be a , or -- -- -- foreign[blank]key[blank...
-- @testpoint:opengauss关键字state非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists state; create sequence state start 100 cache 50; drop sequence state; --关键字带双引号-成功 drop sequence if exists "state"; create sequence "state" start 100 cache 50; drop sequence "state"; --关键字带单引号-合理报错 drop sequence if exists 'state'; creat...
<reponame>gabrielcostasilva/python-data-access<filename>db-scripts/create-table-city.sql CREATE TABLE city( id int NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT 'Primary Key', city_name VARCHAR(255) NOT NULL UNIQUE, CONSTRAINT name_gt_2_char CHECK (CHAR_LENGTH(city_name) > 2) ) DEFAULT CHARSET UTF8 COMMENT ...
create table tb_product ( id int8 not null generated by default as identity, name varchar(255) not null, product_id varchar(36) not null, price decimal not null, quantity int4 not null );
CREATE TABLE safety_problems( safety_report_id INT IDENTITY(1,1) NOT NULL ,safety_report_date DATE NULL ,vehicle_id INT NULL ,safety_id INT NULL ,comments NVARCHAR(2000) NULL ,reported_by INT NULL ,is_active CHAR(1) NULL ,closed_date DATE NULL ,created_by INT NULL ,created_date DATETIME NULL ,updated_by INT NULL ,updat...
<filename>06-Joins-Subqueries-CTE-and-Indices/12. Highest Peaks in Bulgaria.sql USE Geography GO SELECT c.CountryCode, m.MountainRange, p.PeakName, p.Elevation FROM Peaks AS p INNER JOIN Mountains AS m ON m.Id = p.MountainId INNER JOIN MountainsCountries AS mc ON mc.MountainId = m.Id INNER JOIN Countries AS c ...
<filename>SkiBrain.SkiDB/Tables/RacerToSeason.sql CREATE TABLE [dbo].[RacerToSeason] ( [RacerId] INT NOT NULL, [SeasonId] INT NOT NULL, CONSTRAINT [PK_RacerToSeason] PRIMARY KEY CLUSTERED ([RacerId] ASC, [SeasonId] ASC), CONSTRAINT [FK_RacerToSeason_Racer] FOREIGN KEY ([RacerId]) REFERENCES [dbo].[Rac...
<reponame>geophile/sql-layer SELECT COUNT(*) FROM customers INNER JOIN orders on customers.cid = orders.cid
<reponame>CuriosityMusicStreaming/ContentService -- +migrate Up CREATE TABLE content ( `content_id` binary(16) NOT NULL, `title` varchar(255) NOT NULL, `author_id` binary(16) NOT NULL, `type` smallint(2) NOT NULL, `availability_type` smallint(2) NOT NULL, PRIMARY KEY (`content_id`), INDEX `c...
<gh_stars>0 INSERT INTO app_instance (app_instance_id, app_instance_cd, app_instance_lb, app_instance_jmx_url, app_instance_type) VALUES (1, 'ALL', 'All', null, null), (2, 'SMITH', 'John', null, null), (3, 'DUPONT', 'Pierre', null, null);
<gh_stars>1-10 CREATE TABLE things ( owner INT, id INT, val VARCHAR, PRIMARY KEY (owner, id) ) WITH CLUSTERING ORDER BY (id DESC); CREATE TABLE type_testers ( id VARCHAR, int_value INT, varint_value VARINT, bigint_value BIGINT, float_value FLOAT, double_value DOUBLE, decimal_value DECIMAL, asci...
<filename>core/install_update/data/simpleforum.sql<gh_stars>10-100 DROP TABLE IF EXISTS simple_user; CREATE TABLE simple_user ( `id` mediumint(8) unsigned NOT NULL auto_increment, `created_at` int(10) unsigned NOT NULL, `updated_at` int(10) unsigned NOT NULL, `status` tinyint(1) unsigned NOT NULL default 8, `...
-------------------------------------------------------- -- Constraints for Table DIRECTEUR_SPORTIF -------------------------------------------------------- ALTER TABLE "G11_FLIGHT"."DIRECTEUR_SPORTIF" ADD CONSTRAINT "PK_DIRECTEUR_SPORTIF" PRIMARY KEY ("DIRS_NUM") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 CO...
-- create tags DO $$ DECLARE rootid BIGINT; DECLARE tid BIGINT; BEGIN INSERT INTO tags (uid, pattern, description) VALUES ('IgSeiMLj', 'program-topics', 'Program topics') RETURNING id INTO rootid; INSERT INTO tag_i18n (tag_id, language, label) VALUES (rootid, 'he', 'נושאי תוכנית'); INSERT INTO tag_i18n (t...
-- file:interval.sql ln:11 expect:true SELECT INTERVAL '-08:00' AS "Eight hours"
-- Judge result: 4/6 CREATE PROC usp_PlaceOrder @JobID INT, @SN VARCHAR(50), @Quantity INT AS BEGIN -- The quantity cannot be zero or negative: IF (@Quantity <= 0) BEGIN RAISERROR('Part quantity must be more than zero!', 16, 1) RETURN END -- The job with given ID must exist in the database: IF (@JobID NOT ...
-- get locations of schedules ; with cte(PCMID, CMID, ScheduleId, ObjectName, ObjectPath, done, --RootNode, Modified, ReportId) as ( select o.PCMID , n.CMID , n.CMID , n.NAME , cast(n.NAME as varchar(max)) , 0 --, cast(n.NAME as varchar(max)) , o.MODIFI...
DROP TABLE conditions CASCADE;
<gh_stars>1-10 -- Your SQL goes here ALTER TABLE users ADD COLUMN role VARCHAR(6) DEFAULT 'user' NOT NULL; UPDATE users SET role = 'user'; UPDATE users SET role = 'admin' WHERE id IN ( SELECT user_id FROM role_user WHERE role_id IN ( SELECT id FROM roles WHERE name = 'admin' ) ); DROP TABLE role_use...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [AbpUserLoginAttempts]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [TenantId] [int] NULL, [UserId] [bigint] NULL, [TenancyName] [nvarchar](64) NULL, [UserNameOrEmailAddress] [nvarchar](256) NULL, [BrowserInfo] [nvarchar](512) NULL, [Cl...
<filename>coreservices/partsrelationshipservice/prs-api/src/main/resources/db/migration/V1_6__part_aspect_data.sql -- Synthetic data generated for testing/demonstration purposes only COPY public.part_aspect (name, oneidmanufacturer, objectidmanufacturer, url, effect_time, last_modified_time) FROM stdin; CE BMW MUC YS3D...
<reponame>Jonybin/Nyhmdxh -- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 2017-02-05 09:08:01 -- 服务器版本: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
<reponame>mindis/Big_Data_Analysis /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50716 Source Host : localhost Source Database : sql-problems Target Server Type : MySQL Target Server Version : 50716 File Encoding ...
drop table if exists {$PREFIX}wechat_log; drop table if exists {$PREFIX}wechat_match; drop table if exists {$PREFIX}wechat_member; drop table if exists {$PREFIX}wechat_msg_type_dic; drop table if exists {$PREFIX}wechat_reply; drop table if exists {$PREFIX}wechat_reply_log; /*============================================...
ALTER TABLE `named_certificate_authority` ADD COLUMN `temp_uuid` binary(16) NOT NULL; UPDATE `named_certificate_authority` SET `temp_uuid` = unhex(replace(`uuid`, '-', '')); ALTER TABLE `named_certificate_authority` DROP COLUMN `uuid`; ALTER TABLE `named_certificate_authority` CHANGE COLUMN `temp_uuid` `uuid` binary(16...
------------------------------------------------------------------------- -- Deletes old, obsolete seed data. They were created in V2 and replaced -- in V5, but V5 didn't delete the old ones. ------------------------------------------------------------------------- DELETE FROM tokens WHERE token='<KEY>'; DELETE FROM to...
<filename>kata-files/lesson2/postgresql/expected/MYLARGESCHEMA/function/func136.sql<gh_stars>10-100 CREATE FUNCTION func136() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE253);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABL...
<reponame>bcgov/clus<filename>SQL/develop_tipsy_2020_table.sql --remove the output not needed alter table tipsy_prov_2020 drop stand1; alter table tipsy_prov_2020 drop stand2; --add in eca, dec-pcnt alter table tipsy_prov_2020 add column eca double precision; alter table tipsy_prov_2020 add column dec_pcnt double prec...
<reponame>dbflute-test/dbflute-test-option-compatible10x -- /= = = = = = = = = = = = = = = = = = = = = = = -- cached at dbflute-guice-example (synchronized) -- = = = = = = = = = =/ -- For the test about a sequence not related to a table. -- This sequence must be dropped when executing replace-schema task. CREATE SEQU...
INSERT INTO category (name, description) VALUES ('Core', 'Essential Quarkus components. Provided automatically'); INSERT INTO category (name, description) VALUES ('Web', 'Everything you need for REST endpoints, HTTP and web formats like JSON'); INSERT INTO category (name, description) VALUES ('Data', 'Accessing and man...
<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/utilities/backup_restore/full/restore_dir_small_2/validate_insert.sql -- @gucs gp_create_table_random_default_distribution=off select * from aoschema1_1.ao_table3_1; select * from coschema1_1.co_table3_1;
-- @testpoint: 数字操作符!!(前缀阶乘),负数的阶乘,合理报错 drop table if exists data_01; create table data_01 (clo1 float,clo2 float); insert into data_01 values (-8.1, -2.0); select !!clo1 from data_01; select !!clo2 from data_01; SELECT !!-5.5 AS RESULT; drop table if exists data_01;
CREATE TABLE [dbo].[Composer] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Composer] NVARCHAR (50) NOT NULL, [Nationality] VARCHAR (50) NOT NULL );
insert ignore into customer set id = 1, name = '<NAME>', notes = 'Owner of the cat', phone_number = '999999999'; insert ignore into pet set id = 1, birth_date = now(), name = 'Cat', notes = 'Kitty Cat', customer_id = 1, type = 0; #...
<filename>PizzaDBBuilder.sql create database PizzaDB go create schema PizzaSC go create table PizzaSC.Location ( locationid int identity not null,--pk street nvarchar(100) not null, city nvarchar(50) not null, state nvarchar(2) not null,-- as "ST" for State constraint pk_location_locationid primary key (locati...
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 10, 2018 at 04:04 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.1.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<gh_stars>1-10 --Populate both tables with sample records given in the table below. --Minions Towns --Id Name Age TownId Id Name --1 Kevin 22 1 1 Sofia --2 Bob 15 3 2 Plovdiv --3 Steward NULL 2 3 Varna CREATE TABLE Minions ( Id INT PRIMARY KEY, Name NVARCHAR(250), Age INT, TownId INT ) CREATE TABLE Towns...
SELECT pg_attribute.attname AS "Name" FROM pg_index, pg_class, pg_attribute, pg_namespace WHERE pg_class.oid = @Oid AND indrelid = pg_class.oid AND nspname = @TableSchema AND pg_class.relnamespace = pg_namespace.oid AND pg_attribute.attrelid = pg_class.oid AND pg_attribute.attnum = any(pg_index.indkey) AND indispr...
ALTER TABLE jobs ADD COLUMN approved_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT '2000-01-01 00:00:00+00';
<filename>sql/updates/02-fix-view-offbyone.sql DROP VIEW faqoff_view_entry_24h; CREATE VIEW faqoff_view_entry_24h AS SELECT entry, COUNT(DISTINCT (ipaddr, entry)) AS count FROM faqoff_entry_accesslog WHERE hittime + '1 day' >= now() GROUP BY entry ORDER BY count DESC;
<reponame>forgottenlands/ForgottenCore406 -- <NAME> -41586 DELETE FROM `creature_loot_template` WHERE (`entry`=41586); INSERT INTO `creature_loot_template` VALUES (41586, 17058, 32, 1, 2, 1, 1), (41586, 17057, 31, 1, 8, 1, 1), (41586, 53010, 20, 1, 7, 1, 1), (41586, 52340, 19, 1, 2, 1, 1), (41586, 68198, 4, 1, 7, 1, 1)...
<filename>5.Posoi_dilosan_perasan_erg_1k3.sql -- ================================================ -- Template generated from Template Explorer using: -- Create Procedure (New Menu).SQL -- -- Use the Specify Values for Template Parameters -- command (Ctrl-Shift-M) to fill in the parameter -- values below. -- -...
<reponame>tridentcodesolution/jpankleshwaria.github.io begin; -- Swedish-gifi.sql INSERT INTO gifi (accno,description) VALUES ('200','Kassa och bank '); INSERT INTO gifi (accno,description) VALUES ('202','Aktier och andelar '); INSERT INTO gifi (accno,description) VALUES ('203','Övriga kortfristiga placeringar'); IN...
<filename>FXServer_ESX/resources/[ESX]/[data]/esx_kashacters/esx_kashacters.sql -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 02 feb 2019 om 20:58 -- Serverversie: 10.1.32-MariaDB -- PHP-versie: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCO...
<reponame>ggear/cloudera-framework -- -- Table create -- -- noinspection SqlDialectInspectionForFile -- noinspection SqlNoDataSourceInspectionForFile USE ${hivevar:my.database.name}; CREATE EXTERNAL TABLE IF NOT EXISTS ${hivevar:my.table.name} PARTITIONED BY ( ${hivevar:my.table.partition} ) ROW FORMAT SERDE '${hivev...
<filename>kata-files/lesson1/step2/DEMO_SCHEMA/table/Country.sql //// CHANGE name=change0 create table Country ( id varchar(255) not null, name varchar(255), primary key (id) ) GO
CREATE TABLE products ( "Product" VARCHAR(50), "Type" int, "Price" FLOAT ) INSERT INTO products VALUES ('Clock deluxe',1,5), ('Clock basic',2,3), ('Other thing',3,3), ('Clock',1,10), ('B',2,8), ('C', 1, 7) SELECT t1."Product", t1."Type", t1."Price" FROM products AS t1 WHERE t1."Product" LIKE 'Clock%' DROP TABLE prod...
CREATE TABLE students as SELECT "4/16/2019 13:31:49" AS time, 3 AS number, "red" AS color, "7" as seven, "Hotline Bling" AS song, "4/9" AS date, "eagle" AS pet, "Option 2" AS gerald, 3 AS smallest UNION SELECT "4/16/2019 16:12:47", 14, "none", "Choose this option instead.", """I Want it That Way"""" by Backstre...
CREATE TABLE `bans` ( `ban_id` int(11) NOT NULL AUTO_INCREMENT, `ban_gamespace` int(11) NOT NULL, `ban_account` int(11) NOT NULL, `ban_reason` varchar(255) NOT NULL, `ban_ip` varchar(64) DEFAULT NULL, `ban_expires` datetime NOT NULL, PRIMARY KEY (`ban_id`), KEY `ban_account` (`ban_account`), KEY `ban_...
<reponame>anand4143/less ALTER TABLE `users_judge` ADD `userContestReportID` INT(10) NULL DEFAULT NULL COMMENT 'user_contest_report table id is available then assign other song to judge' AFTER `judgementTime`; ALTER TABLE `users_judge` CHANGE `userContestReportID` `userContestReportID` INT(10) NOT NULL DEFAULT '0' COM...
PRAGMA foreign_keys = ON; CREATE TABLE Breeds ( BreedId INT PRIMARY KEY NOT NULL CHECK ( BreedId BETWEEN 0 AND 37 ), BreedName TEXT UNIQUE NOT NULL COLLATE NOCASE CHECK ( LENGTH(BreedName) BETWEEN 3 AND 12 ) ); CREATE TABLE MonsterTypes ( MonsterTypeId INTEGER PRIMARY KEY NOT NULL CHECK ( ...
/* Navicat Premium Data Transfer Source Server : reza Source Server Type : MySQL Source Server Version : 100413 Source Host : localhost:3306 Source Schema : db_air_bersih Target Server Type : MySQL Target Server Version : 100413 File Encoding : 65001 Date: 04/03/2021...
USE AdventureWorks2016CTP3 GO DECLARE @id int DECLARE cursorT CURSOR LOCAL STATIC --LOCAL FAST_FORWARD --LOCAL READ_ONLY FORWARD_ONLY FOR SELECT ProductId FROM Production.Product WHERE DaysToManufacture <= 1 OPEN cursorT FETCH NEXT FROM cursorT INTO @id WHILE @@FETCH_STATUS = 0 BEGIN SELECT * FROM Produ...
--Créez un groupe marketing qui peut ajouter, modifier et supprimer des produits et des catégories, --consulter des commandes, leur détails et les clients. Ce groupe ne peut rien faire sur les autres tables. --i.e. role1 = SELECT, INSERT, UPDATE, DELETE on products and categories -- role2 = SELECT on orders, ord...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50540 Source Host : localhost Source Database : youdatabase Target Server Type : MySQL Target Server Version : 50540 File Encoding : utf-8 Date: 08/27/2018 15:...
create or replace view flow_my_task_inbox_my_processes as select sbfl.sbfl_dgrm_name , sbfl.sbfl_prcs_id , sbfl.sbfl_process_name , sbfl.sbfl_current_name , sbfl.sbfl_current_lane_name , sbfl.sbfl_reservation , sbfl.sbfl_last_update , sbfl.sbfl_status -- , sbfl.sbfl_prc...
DROP DATABASE IF EXISTS company; CREATE DATABASE company; USE company; DROP TABLE IF EXISTS employees; DROP TABLE IF EXISTS roles; DROP TABLE IF EXISTS departments; CREATE TABLE departments ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50) NOT NULL ); CREATE TABLE roles ( id INT AUTO_INCREMENT PRIMARY KEY,...