选择价格+金额,共FROM项目

时间:2019-02-20 09:57:23

标签: sql

# ---------------------------------------------------------------------------
# "OrdererOrgs" - Definition of organizations managing orderer nodes
# ---------------------------------------------------------------------------
OrdererOrgs:
  # ---------------------------------------------------------------------------
  # Orderer
  # ---------------------------------------------------------------------------
  - Name: Orderer
    Domain: medrecnet.com   
    # ---------------------------------------------------------------------------
    # "Specs" - See PeerOrgs below for complete description
    # ---------------------------------------------------------------------------
    Specs:
      - Hostname: orderer
# ---------------------------------------------------------------------------
# "PeerOrgs" - Definition of organizations managing peer nodes
# ---------------------------------------------------------------------------
PeerOrgs:
  # ---------------------------------------------------------------------------
  # Hospital
  # ---------------------------------------------------------------------------
  - Name: Hospital
    Domain: hospital.medrecnet.com
    EnableNodeOUs: true
    # ---------------------------------------------------------------------------
    # "Specs"
    # ---------------------------------------------------------------------------
    # Uncomment this section to enable the explicit definition of hosts in your
    # configuration.  Most users will want to use Template, below
    #
    # Specs is an array of Spec entries.  Each Spec entry consists of two fields:
    #   - Hostname:   (Required) The desired hostname, sans the domain.
    #   - CommonName: (Optional) Specifies the template or explicit override for
    #                 the CN.  By default, this is the template:
    #
    #                              "{{.Hostname}}.{{.Domain}}"
    #
    #                 which obtains its values from the Spec.Hostname and
    #                 Org.Domain, respectively.
    # ---------------------------------------------------------------------------
    # Specs:
    #   - Hostname: foo # implicitly "foo.org1.example.com"
    #     CommonName: foo27.org5.example.com # overrides Hostname-based FQDN set above
    #   - Hostname: bar
    #   - Hostname: baz
    # ---------------------------------------------------------------------------
    # "Template"
    # ---------------------------------------------------------------------------
    # Allows for the definition of 1 or more hosts that are created sequentially
    # from a template. By default, this looks like "peer%d" from 0 to Count-1.
    # You may override the number of nodes (Count), the starting index (Start)
    # or the template used to construct the name (Hostname).
    #
    # Note: Template and Specs are not mutually exclusive.  You may define both
    # sections and the aggregate nodes will be created for you.  Take care with
    # name collisions
    # ---------------------------------------------------------------------------
    Template:
      Count: 2
      # Start: 5
      # Hostname: {{.Prefix}}{{.Index}} # default
    # ---------------------------------------------------------------------------
    # "Users"
    # ---------------------------------------------------------------------------
    # Count: The number of user accounts _in addition_ to Admin
    # ---------------------------------------------------------------------------
    Users:
      Count: 1
  # ---------------------------------------------------------------------------
  # Doctor: See "Hospital" for full specification
  # ---------------------------------------------------------------------------
  - Name: Doctor
    Domain: doctor.medrecnet.com
    EnableNodeOUs: true
    Template:
      Count: 2
    Users:
      Count: 1
  # ---------------------------------------------------------------------------
  # Nurse: See "Hospital" for full specification
  # ---------------------------------------------------------------------------
  - Name: Nurse
    Domain: nurse.medrecnet.com
    EnableNodeOUs: true
    Template:
      Count: 2
    Users:
      Count: 1  

  # ---------------------------------------------------------------------------
  # Lab: See "Hospital" for full specification
  # ---------------------------------------------------------------------------
  - Name: Lab
    Domain: lab.medrecnet.com
    EnableNodeOUs: true
    Template:
      Count: 2
    Users:
      Count: 1    

  # ---------------------------------------------------------------------------
  # Administration: See "Hospital" for full specification
  # ---------------------------------------------------------------------------
  - Name: Administration
    Domain: administration.medrecnet.com
    EnableNodeOUs: true
    Template:
      Count: 2
    Users:
      Count: 1        
  # ---------------------------------------------------------------------------
  # Patient: See "Hospital" for full specification
  # ---------------------------------------------------------------------------
  - Name: Patient
    Domain: patient.medrecnet.com
    EnableNodeOUs: true
    Template:
      Count: 2
    Users:
      Count: 1

我正在尝试登录Code wars。我在上面看,不知道该怎么办。谁能帮忙

1 个答案:

答案 0 :(得分:0)

要获得商品的总价值,您应该将价格和金额相乘,而不是相加。